]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10676b73f4bb8db2d9ac48d674ad1a31e3d976cf
tree909789e3f7517e50882a42d5be7c1d99d3ad9856
parent05993e4a58c7f87c7ad87e341081f792535ffc15
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