mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
ARM: iop: 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>
This commit is contained in:
parent
894cf56b1a
commit
d28b116b92
1 changed files with 1 additions and 3 deletions
|
@ -170,7 +170,5 @@ void __init iop_init_time(unsigned long tick_rate)
|
|||
write_trr1(0xffffffff);
|
||||
write_tcr1(0xffffffff);
|
||||
write_tmr1(timer_ctl);
|
||||
clocksource_calc_mult_shift(&iop_clocksource, tick_rate,
|
||||
IOP_MIN_RANGE);
|
||||
clocksource_register(&iop_clocksource);
|
||||
clocksource_register_hz(&iop_clocksource, tick_rate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue