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)
committer黄涛 <huangtao@rock-chips.com>
Wed, 22 Feb 2012 06:09:44 +0000 (14:09 +0800)
commit80e4f17cc859e0229a60e97ff778bf1f1e99dd64
tree08b0edfe2bb3454ebfd229b2fd870523b8611825
parent6cf5d1c9738185bd1e77f648dde45f7fc809bec1
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