[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1328241417-27043-1-git-send-email-consul.kautuk@gmail.com>
Date: Fri, 3 Feb 2012 09:26:57 +0530
From: Kautuk Consul <consul.kautuk@...il.com>
To: Russell King <linux@....linux.org.uk>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Kautuk Consul <consul.kautuk@...il.com>
Subject: [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.
Signed-off-by: Kautuk Consul <consul.kautuk@...il.com>
---
arch/arm/vfp/vfpmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
index 8f3ccdd..71cd21a 100644
--- a/arch/arm/vfp/vfpmodule.c
+++ b/arch/arm/vfp/vfpmodule.c
@@ -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 */
--
1.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists