diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-13 08:19:35 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-22 17:44:36 -0500 |
commit | 2c760b5b52a56e8b92c384dc9611e23fd4980d03 (patch) | |
tree | 53989a0eebfcf279a3bfc6b3898cb1299cbc694b /arch/arm/mach-sa1100 | |
parent | 71c874529904818a2888a650425369e0842ff28d (diff) |
ARM: SA11x0: 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>
Diffstat (limited to 'arch/arm/mach-sa1100')
-rw-r--r-- | arch/arm/mach-sa1100/time.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c index 74b6e0e570b6..96154f578cd5 100644 --- a/arch/arm/mach-sa1100/time.c +++ b/arch/arm/mach-sa1100/time.c | |||
@@ -81,7 +81,6 @@ static struct clocksource cksrc_sa1100_oscr = { | |||
81 | .rating = 200, | 81 | .rating = 200, |
82 | .read = sa1100_read_oscr, | 82 | .read = sa1100_read_oscr, |
83 | .mask = CLOCKSOURCE_MASK(32), | 83 | .mask = CLOCKSOURCE_MASK(32), |
84 | .shift = 20, | ||
85 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 84 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
86 | }; | 85 | }; |
87 | 86 | ||
@@ -105,12 +104,9 @@ static void __init sa1100_timer_init(void) | |||
105 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_sa1100_osmr0) + 1; | 104 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_sa1100_osmr0) + 1; |
106 | ckevt_sa1100_osmr0.cpumask = cpumask_of(0); | 105 | ckevt_sa1100_osmr0.cpumask = cpumask_of(0); |
107 | 106 | ||
108 | cksrc_sa1100_oscr.mult = | ||
109 | clocksource_hz2mult(CLOCK_TICK_RATE, cksrc_sa1100_oscr.shift); | ||
110 | |||
111 | setup_irq(IRQ_OST0, &sa1100_timer_irq); | 107 | setup_irq(IRQ_OST0, &sa1100_timer_irq); |
112 | 108 | ||
113 | clocksource_register(&cksrc_sa1100_oscr); | 109 | clocksource_register_hz(&cksrc_sa1100_oscr, CLOCK_TICK_RATE); |
114 | clockevents_register_device(&ckevt_sa1100_osmr0); | 110 | clockevents_register_device(&ckevt_sa1100_osmr0); |
115 | } | 111 | } |
116 | 112 | ||