diff options
author | Olof Johansson <olof@lixom.net> | 2013-01-14 13:20:02 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-01-14 13:20:02 -0500 |
commit | 8d84981e395850aab31c3f2ca7e2738e03f671d7 (patch) | |
tree | 933425fddb23d28be802277471df3fe3f6c2711d /arch/arm/mach-pxa/time.c | |
parent | 00c82d64405631967dca3890a9ce80ab35d04cc7 (diff) | |
parent | 77cc982f6a3b33a5aa058ad3b20cda8866db2948 (diff) |
Merge branch 'clocksource/cleanup' into next/cleanup
Clockevent cleanup series from Shawn Guo.
Resolved move/change conflict in mach-pxa/time.c due to the sys_timer
cleanup.
* clocksource/cleanup:
clocksource: use clockevents_config_and_register() where possible
ARM: use clockevents_config_and_register() where possible
clockevents: export clockevents_config_and_register for module use
+ sync to Linux 3.8-rc3
Signed-off-by: Olof Johansson <olof@lixom.net>
Conflicts:
arch/arm/mach-pxa/time.c
Diffstat (limited to 'arch/arm/mach-pxa/time.c')
-rw-r--r-- | arch/arm/mach-pxa/time.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c index bea19a06b2bf..8f1ee92aea30 100644 --- a/arch/arm/mach-pxa/time.c +++ b/arch/arm/mach-pxa/time.c | |||
@@ -151,16 +151,12 @@ void __init pxa_timer_init(void) | |||
151 | 151 | ||
152 | setup_sched_clock(pxa_read_sched_clock, 32, clock_tick_rate); | 152 | setup_sched_clock(pxa_read_sched_clock, 32, clock_tick_rate); |
153 | 153 | ||
154 | clockevents_calc_mult_shift(&ckevt_pxa_osmr0, clock_tick_rate, 4); | ||
155 | ckevt_pxa_osmr0.max_delta_ns = | ||
156 | clockevent_delta2ns(0x7fffffff, &ckevt_pxa_osmr0); | ||
157 | ckevt_pxa_osmr0.min_delta_ns = | ||
158 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_pxa_osmr0) + 1; | ||
159 | ckevt_pxa_osmr0.cpumask = cpumask_of(0); | 154 | ckevt_pxa_osmr0.cpumask = cpumask_of(0); |
160 | 155 | ||
161 | setup_irq(IRQ_OST0, &pxa_ost0_irq); | 156 | setup_irq(IRQ_OST0, &pxa_ost0_irq); |
162 | 157 | ||
163 | clocksource_mmio_init(OSCR, "oscr0", clock_tick_rate, 200, 32, | 158 | clocksource_mmio_init(OSCR, "oscr0", clock_tick_rate, 200, 32, |
164 | clocksource_mmio_readl_up); | 159 | clocksource_mmio_readl_up); |
165 | clockevents_register_device(&ckevt_pxa_osmr0); | 160 | clockevents_config_and_register(&ckevt_pxa_osmr0, clock_tick_rate, |
161 | MIN_OSCR_DELTA * 2, 0x7fffffff); | ||
166 | } | 162 | } |