diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-15 21:56:47 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-22 22:44:50 (GMT) |
commit | 1da0c89c66753860ccfe81eb327c25db46c2a24a (patch) | |
tree | 565710dc2a57dca18a17d3e34465485f32191b81 /arch/arm/mach-realview/core.c | |
parent | f06a1624621527ef597ae4b3b795553fc1b2eff2 (diff) | |
download | linux-1da0c89c66753860ccfe81eb327c25db46c2a24a.tar.xz |
ARM: versatile: convert sched_clock() to use new infrastructure
Convert versatile platforms to use the new sched_clock() infrastructure
for extending 32bit counters to full 64-bit nanoseconds.
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/core.c')
-rw-r--r-- | arch/arm/mach-realview/core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 07c0815..3d653e0 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c @@ -52,6 +52,8 @@ #include <mach/irqs.h> #include <plat/timer-sp.h> +#include <plat/sched_clock.h> + #include "core.h" /* used by entry-macro.S and platsmp.c */ @@ -658,6 +660,12 @@ void realview_leds_event(led_event_t ledevt) #endif /* CONFIG_LEDS */ /* + * The sched_clock counter + */ +#define REFCOUNTER (__io_address(REALVIEW_SYS_BASE) + \ + REALVIEW_SYS_24MHz_OFFSET) + +/* * Where is the timer (VA)? */ void __iomem *timer0_va_base; @@ -672,6 +680,8 @@ void __init realview_timer_init(unsigned int timer_irq) { u32 val; + versatile_sched_clock_init(REFCOUNTER, 24000000); + /* * set clock frequency: * REALVIEW_REFCLK is 32KHz |