aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-13 08:17:40 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-22 17:44:31 -0500
commitb7c7c50adcf0d9c901542c5db8d795fe226bb454 (patch)
treef4bca159564449af01c9126d12a46aa2c3310d4e /arch/arm/mach-ixp4xx
parent08963dab7c6b0ba6a687cb008299eabbbeff7282 (diff)
ARM: ixp4xx: 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. Tested-by: Mikael Pettersson <mikpe@it.uu.se> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r--arch/arm/mach-ixp4xx/common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c
index 0bce09799d18..82fc003aae8b 100644
--- a/arch/arm/mach-ixp4xx/common.c
+++ b/arch/arm/mach-ixp4xx/common.c
@@ -411,7 +411,6 @@ static struct clocksource clocksource_ixp4xx = {
411 .rating = 200, 411 .rating = 200,
412 .read = ixp4xx_get_cycles, 412 .read = ixp4xx_get_cycles,
413 .mask = CLOCKSOURCE_MASK(32), 413 .mask = CLOCKSOURCE_MASK(32),
414 .shift = 20,
415 .flags = CLOCK_SOURCE_IS_CONTINUOUS, 414 .flags = CLOCK_SOURCE_IS_CONTINUOUS,
416}; 415};
417 416
@@ -419,10 +418,7 @@ unsigned long ixp4xx_timer_freq = FREQ;
419EXPORT_SYMBOL(ixp4xx_timer_freq); 418EXPORT_SYMBOL(ixp4xx_timer_freq);
420static void __init ixp4xx_clocksource_init(void) 419static void __init ixp4xx_clocksource_init(void)
421{ 420{
422 clocksource_ixp4xx.mult = 421 clocksource_register_hz(&clocksource_ixp4xx, ixp4xx_timer_freq);
423 clocksource_hz2mult(ixp4xx_timer_freq,
424 clocksource_ixp4xx.shift);
425 clocksource_register(&clocksource_ixp4xx);
426} 422}
427 423
428/* 424/*