提交 b7c7c50a 编写于 作者: R Russell King

ARM: ixp4xx: 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.
Tested-by: NMikael Pettersson <mikpe@it.uu.se>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 08963dab
...@@ -411,7 +411,6 @@ static struct clocksource clocksource_ixp4xx = { ...@@ -411,7 +411,6 @@ static struct clocksource clocksource_ixp4xx = {
.rating = 200, .rating = 200,
.read = ixp4xx_get_cycles, .read = ixp4xx_get_cycles,
.mask = CLOCKSOURCE_MASK(32), .mask = CLOCKSOURCE_MASK(32),
.shift = 20,
.flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS,
}; };
...@@ -419,10 +418,7 @@ unsigned long ixp4xx_timer_freq = FREQ; ...@@ -419,10 +418,7 @@ unsigned long ixp4xx_timer_freq = FREQ;
EXPORT_SYMBOL(ixp4xx_timer_freq); EXPORT_SYMBOL(ixp4xx_timer_freq);
static void __init ixp4xx_clocksource_init(void) static void __init ixp4xx_clocksource_init(void)
{ {
clocksource_ixp4xx.mult = clocksource_register_hz(&clocksource_ixp4xx, ixp4xx_timer_freq);
clocksource_hz2mult(ixp4xx_timer_freq,
clocksource_ixp4xx.shift);
clocksource_register(&clocksource_ixp4xx);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册