]> git.baikalelectronics.ru Git - kernel.git/commit
dw_apb_timer_of.c: Remove parts that were picoxcell-specific
authorPavel Machek <pavel@denx.de>
Tue, 7 May 2013 20:11:26 +0000 (22:11 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 28 May 2013 21:00:58 +0000 (14:00 -0700)
commitc2ffba78db250b642b8741f8a912af874522a1ae
treeb36789476bf234c322f8200dc26b040f9abd80ee
parent82d8ec6b6fc57fbb8e0894d6bc7aaf3b8d5eded9
dw_apb_timer_of.c: Remove parts that were picoxcell-specific

It seems we made a mistake when creating dw_apb_timer_of.c:
picoxcell sched_clock had parts that were not related to
dw_apb_timer, yet we moved them to dw_apb_timer_of, and tried to
use them on socfpga.

This results in system where user/system time is not measured
properly, as demonstrated by

    time dd if=/dev/urandom of=/dev/zero bs=100000 count=100

So this patch switches sched_clock to hardware that exists on both
platforms, and adds missing of_node_put() in dw_apb_timer_init().

Signed-off-by: Pavel Machek <pavel@denx.de>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
arch/arm/mach-picoxcell/common.h
drivers/clocksource/dw_apb_timer.c
drivers/clocksource/dw_apb_timer_of.c
include/linux/dw_apb_timer.h