msm: timer: Use GPT for clockevents and DGT for clocksource
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 8 Nov 2011 18:34:05 +0000 (10:34 -0800)
committerDavid Brown <davidb@codeaurora.org>
Thu, 10 Nov 2011 18:36:33 +0000 (10:36 -0800)
commitdd15ab814149df65187943c32ca09e4eeaac0047
tree909789e3f7517e50882a42d5be7c1d99d3ad9856
parent4a1840755294b2a14236ee7b9c74ede261156b09
msm: timer: Use GPT for clockevents and DGT for clocksource

The clocksource shouldn't stop ticking when the clockevent stops.
This is exactly what happens today with MSM timers. The same
hardware is used for both the clockevent and the clocksource
because the ratings of the two are the same.

Fix this by registering a clockevent based on the GPT and a
clocksource based on the DGT. This removes any other possible
configuration (e.g. a GPT clocksource and a DGT clockevent) but
that shouldn't be a big issue since we want higher precision
timing than high precision scheduling interrupts.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/timer.c