diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-13 13:18:32 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-22 22:44:34 +0000 |
commit | b460ddbbe29a45cc13e3f13314ec9aed7e9412f2 (patch) | |
tree | 4da687322220bc74c1516c209fb92d48b646f181 | |
parent | 4f9272bfe8fca7e6d9e2f44eb78fd2c3ecdf9a0e (diff) | |
download | op-kernel-dev-b460ddbbe29a45cc13e3f13314ec9aed7e9412f2.zip op-kernel-dev-b460ddbbe29a45cc13e3f13314ec9aed7e9412f2.tar.gz |
ARM: ns9xxx: 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>
-rw-r--r-- | arch/arm/mach-ns9xxx/time-ns9360.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-ns9xxx/time-ns9360.c b/arch/arm/mach-ns9xxx/time-ns9360.c index 7728126..9ca32f5 100644 --- a/arch/arm/mach-ns9xxx/time-ns9360.c +++ b/arch/arm/mach-ns9xxx/time-ns9360.c @@ -35,7 +35,6 @@ static struct clocksource ns9360_clocksource = { .rating = 300, .read = ns9360_clocksource_read, .mask = CLOCKSOURCE_MASK(32), - .shift = 20, .flags = CLOCK_SOURCE_IS_CONTINUOUS, }; @@ -148,10 +147,7 @@ static void __init ns9360_timer_init(void) __raw_writel(tc, SYS_TC(TIMER_CLOCKSOURCE)); - ns9360_clocksource.mult = clocksource_hz2mult(ns9360_cpuclock(), - ns9360_clocksource.shift); - - clocksource_register(&ns9360_clocksource); + clocksource_register_hz(&ns9360_clocksource, ns9360_cpuclock()); latch = SH_DIV(ns9360_cpuclock(), HZ, 0); |