OSDN Git Service

ARM: CPU hotplug: fix reporting of spurious wakeups
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 19 Dec 2010 11:30:43 +0000 (11:30 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 15:09:14 +0000 (15:09 +0000)
commitd4450261e546953c4a1ce8b48e29164a57c6ed33
treeb0f06bdcf316b78a05fb6e14167b4cccb247d78f
parent58613cd1d4f8c2d5f25b6c57ad7fbed80e75a67b
ARM: CPU hotplug: fix reporting of spurious wakeups

The original scheme for reporting spurious wakeups was broken - it
tried to use printk() from a context which wasn't coherent with the
other CPUs, which risks corrupting the printk() data.

Fix this by noting the number spurious wakeups, and only report them
when we are properly woken - when we will be coherent with the rest
of the system.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-realview/hotplug.c
arch/arm/mach-s5pv310/hotplug.c
arch/arm/mach-tegra/hotplug.c