Skip to content

Commit

Permalink
ARM: ns9xxx: update clock source registration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Dec 22, 2010
1 parent 4f9272b commit b460ddb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/arm/mach-ns9xxx/time-ns9360.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit b460ddb

Please sign in to comment.