Skip to contentSkip to conversation

arm/vfp: vfp_pm_suspend: Use local variable instead of rereading from register

PATCH New Kautuk Consul 1 participant 1 message Feb 3, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/vfp: vfp_pm_suspend: Use local variable instead of rereading from register

The fpexc variable already stores the value in the FPEXC register.

Use this instead of reading the value again from the register.

---
 arch/arm/vfp/vfpmodule.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/vfp/vfpmodule.c +1 -1
index 8f3ccdd..71cd21a 100644
@@ -448,7 +448,7 @@ static int vfp_pm_suspend(void)
 		vfp_save_state(&ti->vfpstate, fpexc);
 
 		/* disable, just in case */
-		fmxr(FPEXC, fmrx(FPEXC) & ~FPEXC_EN);
+		fmxr(FPEXC, fpexc & ~FPEXC_EN);
 	}
 
 	/* clear any information we had about last context state */
Signature · 1 line
1.7.6