ARM: vfp: only clear vfp state for current cpu in vfp_pm_suspend
authorColin Cross <ccross@android.com>
Sat, 28 Apr 2012 01:04:18 +0000 (18:04 -0700)
committerColin Cross <ccross@android.com>
Mon, 30 Apr 2012 20:15:00 +0000 (13:15 -0700)
commit80b8354d535d2e8d6ced0b0e129257dba1fb2130
tree6485c4ab1be0d81f05ab7dd76b041570d0bfe14d
parent6ae285d5333a9c5ebf2a448a73065730b24481f9
ARM: vfp: only clear vfp state for current cpu in vfp_pm_suspend

vfp_pm_suspend runs on each cpu, only clear the hardware state
pointer for the current cpu.  Prevents a possible crash if one
cpu clears the hw state pointer when another cpu has already
checked if it is valid.

Change-Id: I997ab1554944eba86730818ff242d7ebe1b32736
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/vfp/vfpmodule.c