From: Yanmin Zhang <yanmin_zhang@linux.intel.com>
To: akpm@linux-foundation.org
Cc: LKML <linux-kernel@vger.kernel.org>,
shaohua.li@intel.com, len.brown@intel.com,
mingmingx.zhang@intel.com
Subject: [Fwd: [patch] intel_idle: Delete meaningless local_irq_disable() call in intel_idle.c.]
Date: Mon, 26 Dec 2011 09:28:20 +0800 [thread overview]
Message-ID: <1324862905.3860.1.camel@ymzhang> (raw)
Andrew,
Would you like to accept the patch into your testing tree?
Thanks,
Yanmin
-------- Forwarded Message --------
From: Zhang, MingmingX <mingmingx.zhang@intel.com>
To: linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>
Cc: yanmin_zhang@linux.intel.com <yanmin_zhang@linux.intel.com>, Li,
Shaohua <shaohua.li@intel.com>, Brown, Len <len.brown@intel.com>
Subject: [patch] intel_idle: Delete meaningless local_irq_disable() call
in intel_idle.c.
Date: Fri, 23 Dec 2011 01:57:29 +0000
From: mzha38X <mingmingx.zhang@intel.com>
intel_idle.c is a bit misleading in a sense that local_irq_disable,it
actually does nothing. Real irq disable happens earlier in process_32.c:cpu_idle.
Basically, cpuidle_state->enter is called, cpu irq is disabled.
cpuidle_state->enter would turn on irq when exiting.
intel_idle doesn't follow this assumption. Although it doesn't
cause real issue, it misleads developers. Below patch deletes
the calling to local_irq_disable() at entry.
Signed-off-by: mzha38X <mingmingx.zhang@intel.com>
---
drivers/idle/intel_idle.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 5d2f8e1..28f0394 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -247,8 +247,6 @@ static int intel_idle(struct cpuidle_device *dev,
cstate = (((eax) >> MWAIT_SUBSTATE_SIZE) & MWAIT_CSTATE_MASK) + 1;
- local_irq_disable();
-
/*
* leave_mm() to avoid costly and often unnecessary wakeups
* for flushing the user TLB's associated with the active mm.
--
1.7.1
next reply other threads:[~2011-12-26 1:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-26 1:28 Yanmin Zhang [this message]
2011-12-28 0:10 ` [Fwd: [patch] intel_idle: Delete meaningless local_irq_disable() call in intel_idle.c.] Andrew Morton
2011-12-28 0:27 ` Yanmin Zhang
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=1324862905.3860.1.camel@ymzhang \
--to=yanmin_zhang@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingmingx.zhang@intel.com \
--cc=shaohua.li@intel.com \
/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