ARM: 7476/1: vfp: only clear vfp state for current cpu in vfp_pm_suspend
authorColin Cross <ccross@android.com>
Fri, 20 Jul 2012 01:03:43 +0000 (02:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 31 Jul 2012 09:30:42 +0000 (10:30 +0100)
commita84b895a2348f0dbff31b71ddf954f70a6cde368
treee5b4d9734e482c4f126ac3d466db780eed74a18d
parent4c36595ec87115f2f876f7d4fdec8ca284a42b9c
ARM: 7476/1: 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.

Cc: stable@vger.kernel.org
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpmodule.c