From: consul.kautuk@gmail.com (Kautuk Consul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] arm/vfp: vfp_pm_suspend: Use local variable instead of rereading from register
Date: Fri, 3 Feb 2012 09:26:57 +0530 [thread overview]
Message-ID: <1328241417-27043-1-git-send-email-consul.kautuk@gmail.com> (raw)
In-Reply-To: <y>
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@gmail.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
reply other threads:[~2012-02-03 3:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328241417-27043-1-git-send-email-consul.kautuk@gmail.com \
--to=consul.kautuk@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).