* [PATCH] arm: Reset SP804 timer when initialising it as a clock events device
@ 2011-01-24 16:39 Pawel Moll
2011-01-24 16:46 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Pawel Moll @ 2011-01-24 16:39 UTC (permalink / raw)
To: linux-arm-kernel
The SP804 driver resets relevant timer when initialising it as
a clock source, but it doesn't do this for clock event device.
Fixed.
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
---
arch/arm/common/timer-sp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/common/timer-sp.c b/arch/arm/common/timer-sp.c
index 6ef3342..e64cad3 100644
--- a/arch/arm/common/timer-sp.c
+++ b/arch/arm/common/timer-sp.c
@@ -142,6 +142,9 @@ void __init sp804_clockevents_init(void __iomem *base, unsigned int timer_irq)
clkevt_base = base;
+ /* Reset the timer to prevent spurious interrupts */
+ writel(0, clkevt_base + TIMER_CTRL);
+
evt->irq = timer_irq;
evt->mult = div_sc(TIMER_FREQ_KHZ, NSEC_PER_MSEC, evt->shift);
evt->max_delta_ns = clockevent_delta2ns(0xffffffff, evt);
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm: Reset SP804 timer when initialising it as a clock events device
2011-01-24 16:39 [PATCH] arm: Reset SP804 timer when initialising it as a clock events device Pawel Moll
@ 2011-01-24 16:46 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2011-01-24 16:46 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jan 24, 2011 at 04:39:48PM +0000, Pawel Moll wrote:
> The SP804 driver resets relevant timer when initialising it as
> a clock source, but it doesn't do this for clock event device.
NAK.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-24 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 16:39 [PATCH] arm: Reset SP804 timer when initialising it as a clock events device Pawel Moll
2011-01-24 16:46 ` Russell King - ARM Linux
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.