]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7297/1: smp_twd: make sure timer is stopped before registering it
authorMarc Zyngier <Marc.Zyngier@arm.com>
Fri, 20 Jan 2012 11:24:47 +0000 (12:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 Jan 2012 10:20:07 +0000 (10:20 +0000)
commite972131599dcb4e16a7d632bf37046b9d5a85e5d
treecd3a1f9557007ff899ecdd17d1a1f0cc3fd88483
parent9deb352078e65f681f6e50253292692f2b39111a
ARM: 7297/1: smp_twd: make sure timer is stopped before registering it

On secondary CPUs, the Timer Control Register is not reset
to a sane value before the timer is registered, and the TRM
doesn't seem to indicate any reset value either. In some cases,
the kernel will take an interrupt too early, depending on what
junk was present in the registers at reset time.

The fix is to set the Timer Control Register to 0 before
registering the clock_event_device and enabling the interrupt.

Problem seen on VE (Cortex A5) and Tegra.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_twd.c