diff options
Diffstat (limited to 'arch/arm/vfp')
-rw-r--r-- | arch/arm/vfp/vfpmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index e5a857ab8a64..49284aa7d136 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -474,6 +474,12 @@ static int vfp_pm_suspend(void) struct thread_info *ti = current_thread_info(); u32 fpexc = fmrx(FPEXC); + /* If lazy disable, re-enable the VFP ready for it to be saved */ + if (last_VFP_context[ti->cpu] != &ti->vfpstate) { + fpexc |= FPEXC_EN; + fmxr(FPEXC, fpexc); + } + /* if vfp is on, then save state for resumption */ if (fpexc & FPEXC_EN) { printk(KERN_DEBUG "%s: saving vfp state\n", __func__); |