]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: twd: register clockevents device before enabling PPI
authorWill Deacon <will.deacon@arm.com>
Wed, 20 Jul 2011 13:18:46 +0000 (14:18 +0100)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:40 +0000 (14:09 +0200)
commit6840e239cf6088b68cfef18533bef2a552fb5715
tree48523dc64cc012c448eb2d757d4793095fe01baa
parentc3b3bbe9aeac5529c89212f3e358aa3c8e0a0e81
ARM: twd: register clockevents device before enabling PPI

The smp_twd clockevents driver currently enables the local timer PPI
before the clockevents device is registered. This can lead to a kernel
panic if a spurious timer interrupt is generated before registration
has completed since the kernel will treat it as an IPI timer.

This patch moves the clockevents device registration before the IRQ
unmasking so that we can always handle timer interrupts once they can
occur.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/smp_twd.c