diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-15 17:12:46 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-04-29 13:04:17 -0400 |
commit | 861248d177145fc5861507e4607fec89fd0a0462 (patch) | |
tree | f0d11b6c0aefc66d87b5f668e58d09884f40884b /arch/arm/mach-integrator | |
parent | 13edd86d7a8b64735c60c308faac785a6f2257b2 (diff) |
ARM: Integrator: pass 'khz' to integrator_time_init
This is now what the clocksource/clockevent initialization functions
want, so give them the timer tick rate directly.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/core.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-integrator/common.h b/arch/arm/mach-integrator/common.h index 7dc24bb9bdc1..cdbe71091516 100644 --- a/arch/arm/mach-integrator/common.h +++ b/arch/arm/mach-integrator/common.h | |||
@@ -1 +1 @@ | |||
extern void integrator_time_init(unsigned long, unsigned int); | extern void integrator_time_init(u32, unsigned int); | ||
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index b1ccbe3f233f..d02f0e3afdcb 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -363,12 +363,12 @@ static void integrator_clockevent_init(u32 khz, unsigned int ctrl) | |||
363 | /* | 363 | /* |
364 | * Set up timer(s). | 364 | * Set up timer(s). |
365 | */ | 365 | */ |
366 | void __init integrator_time_init(unsigned long reload, unsigned int ctrl) | 366 | void __init integrator_time_init(u32 khz, unsigned int ctrl) |
367 | { | 367 | { |
368 | writel(0, TIMER0_VA_BASE + TIMER_CTRL); | 368 | writel(0, TIMER0_VA_BASE + TIMER_CTRL); |
369 | writel(0, TIMER1_VA_BASE + TIMER_CTRL); | 369 | writel(0, TIMER1_VA_BASE + TIMER_CTRL); |
370 | writel(0, TIMER2_VA_BASE + TIMER_CTRL); | 370 | writel(0, TIMER2_VA_BASE + TIMER_CTRL); |
371 | 371 | ||
372 | integrator_clocksource_init(reload * HZ / 1000); | 372 | integrator_clocksource_init(khz); |
373 | integrator_clockevent_init(reload * HZ / 1000, ctrl); | 373 | integrator_clockevent_init(khz, ctrl); |
374 | } | 374 | } |
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index cfb718fe31a8..93da7d4e459b 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -337,7 +337,7 @@ static void __init ap_init(void) | |||
337 | 337 | ||
338 | static void __init ap_init_timer(void) | 338 | static void __init ap_init_timer(void) |
339 | { | 339 | { |
340 | integrator_time_init(1000000 * TICKS_PER_uSEC / HZ, 0); | 340 | integrator_time_init(TICKS_PER_uSEC * 1000, 0); |
341 | } | 341 | } |
342 | 342 | ||
343 | static struct sys_timer ap_timer = { | 343 | static struct sys_timer ap_timer = { |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 3e84732163ea..108bc480237a 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -572,7 +572,7 @@ static void __init intcp_init(void) | |||
572 | 572 | ||
573 | static void __init intcp_timer_init(void) | 573 | static void __init intcp_timer_init(void) |
574 | { | 574 | { |
575 | integrator_time_init(1000000 / HZ, TIMER_CTRL_IE); | 575 | integrator_time_init(1000, TIMER_CTRL_IE); |
576 | } | 576 | } |
577 | 577 | ||
578 | static struct sys_timer cp_timer = { | 578 | static struct sys_timer cp_timer = { |