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)
committer黄涛 <huangtao@rock-chips.com>
Tue, 8 May 2012 05:11:00 +0000 (13:11 +0800)
commit8d5e8b025ee36235b58e6da279c7ac6e24126f3a
tree01c73de01b66a7f9ec409f33f8c66d114b32f852
parent5d90234212eecc47966682d0e4a3df413e322c48
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