ARM: mach-shmobile: Flush caches in platform_cpu_die()
authorMagnus Damm <damm@opensource.se>
Wed, 28 Dec 2011 07:53:16 +0000 (16:53 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Jan 2012 01:37:29 +0000 (10:37 +0900)
commit1229835ccb6d7ea2b36230121205be95c88eca88
tree7b8c0e49cc88b6a554552e8dd70ae52d1baefd76
parent8b306796995609c281f6d32b3cbaa814551ad5ac
ARM: mach-shmobile: Flush caches in platform_cpu_die()

Add cache flushing code to the SH-Mobile specific CPU hotplug
implementation. While at it, add a cpu mask to make sure the
cache flushing code is finished in platform_cpu_die() before
letting the SoC-specific code in shmobile_platform_cpu_kill()
proceed with turning off power.

Without this code CPU hotplug offline fails when cache is
enabled on Cortex-A9 based SoCs.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/hotplug.c