diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-13 08:17:24 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-22 17:44:31 -0500 |
commit | 08963dab7c6b0ba6a687cb008299eabbbeff7282 (patch) | |
tree | 3bf88324a9ab5e6a4067b127e85da6fb198ab595 /arch/arm/mach-integrator | |
parent | 7c044be50d4bdc33e039a65956b8a927feecaaa3 (diff) |
ARM: integrator: update clock source registration
In d7e81c2 (clocksource: Add clocksource_register_hz/khz interface) new
interfaces were added which simplify (and optimize) the selection of the
divisor shift/mult constants. Switch over to using this new interface.
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/integrator_ap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 548208f11179..2774df8021dc 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -372,7 +372,6 @@ static struct clocksource clocksource_timersp = { | |||
372 | .rating = 200, | 372 | .rating = 200, |
373 | .read = timersp_read, | 373 | .read = timersp_read, |
374 | .mask = CLOCKSOURCE_MASK(16), | 374 | .mask = CLOCKSOURCE_MASK(16), |
375 | .shift = 16, | ||
376 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 375 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
377 | }; | 376 | }; |
378 | 377 | ||
@@ -390,8 +389,7 @@ static void integrator_clocksource_init(u32 khz) | |||
390 | writel(ctrl, base + TIMER_CTRL); | 389 | writel(ctrl, base + TIMER_CTRL); |
391 | writel(0xffff, base + TIMER_LOAD); | 390 | writel(0xffff, base + TIMER_LOAD); |
392 | 391 | ||
393 | cs->mult = clocksource_khz2mult(khz, cs->shift); | 392 | clocksource_register_khz(cs, khz); |
394 | clocksource_register(cs); | ||
395 | } | 393 | } |
396 | 394 | ||
397 | static void __iomem * const clkevt_base = (void __iomem *)TIMER1_VA_BASE; | 395 | static void __iomem * const clkevt_base = (void __iomem *)TIMER1_VA_BASE; |