ARM: vfp: Use cpu pm notifiers to save vfp state
authorColin Cross <ccross@android.com>
Thu, 10 Feb 2011 10:08:32 +0000 (02:08 -0800)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Fri, 23 Sep 2011 06:35:30 +0000 (12:05 +0530)
commit746a9d1963f1c7a3cd22662065d7dcd3d93ee62e
tree184b6ed198685e58f903da3c4c4d5c7b7fe25190
parent254056f3b12563c11e6dbcfad2fbfce20a4f3302
ARM: vfp: Use cpu pm notifiers to save vfp state

When the cpu is powered down in a low power mode, the vfp
registers may be reset.

This patch uses CPU_PM_ENTER and CPU_PM_EXIT notifiers to save
and restore the cpu's vfp registers.

Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-and-Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
arch/arm/vfp/vfpmodule.c