msm: timer: Setup interrupt after registering clockevent
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 8 Nov 2011 18:34:09 +0000 (10:34 -0800)
committerDavid Brown <davidb@codeaurora.org>
Thu, 10 Nov 2011 18:36:33 +0000 (10:36 -0800)
commitdde7d61e7f9bf0e844df375412ec5d51650db486
treeeebad0b8c5cd9a47a6d230907cbdd1444d164396
parent2081a6b57fba2717fa4b04fe978abad238e1f9e4
msm: timer: Setup interrupt after registering clockevent

Some bootloaders may leave a pending interrupt for the timer and
thus msm_timer_interrupt() has a check for a NULL event handler.
Unmask and register for the interrupt after registering the
clockevent so that we can get the NULL pointer check out of the
fast path.

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