Commit b460ddbb authored by Russell King's avatar Russell King

ARM: ns9xxx: update clock source registration

In d7e81c26 (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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4f9272bf
...@@ -35,7 +35,6 @@ static struct clocksource ns9360_clocksource = { ...@@ -35,7 +35,6 @@ static struct clocksource ns9360_clocksource = {
.rating = 300, .rating = 300,
.read = ns9360_clocksource_read, .read = ns9360_clocksource_read,
.mask = CLOCKSOURCE_MASK(32), .mask = CLOCKSOURCE_MASK(32),
.shift = 20,
.flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS,
}; };
...@@ -148,10 +147,7 @@ static void __init ns9360_timer_init(void) ...@@ -148,10 +147,7 @@ static void __init ns9360_timer_init(void)
__raw_writel(tc, SYS_TC(TIMER_CLOCKSOURCE)); __raw_writel(tc, SYS_TC(TIMER_CLOCKSOURCE));
ns9360_clocksource.mult = clocksource_hz2mult(ns9360_cpuclock(), clocksource_register_hz(&ns9360_clocksource, ns9360_cpuclock());
ns9360_clocksource.shift);
clocksource_register(&ns9360_clocksource);
latch = SH_DIV(ns9360_cpuclock(), HZ, 0); latch = SH_DIV(ns9360_cpuclock(), HZ, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment