lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 26 Dec 2011 09:28:20 +0800
From:	Yanmin Zhang <yanmin_zhang@...ux.intel.com>
To:	akpm@...ux-foundation.org
Cc:	LKML <linux-kernel@...r.kernel.org>, shaohua.li@...el.com,
	len.brown@...el.com, mingmingx.zhang@...el.com
Subject: [Fwd: [patch] intel_idle: Delete meaningless local_irq_disable()
 call in intel_idle.c.]

Andrew,

Would you like to accept the patch into your testing tree?

Thanks,
Yanmin

-------- Forwarded Message --------
From: Zhang, MingmingX <mingmingx.zhang@...el.com>
To: linux-kernel@...r.kernel.org <linux-kernel@...r.kernel.org>
Cc: yanmin_zhang@...ux.intel.com <yanmin_zhang@...ux.intel.com>, Li,
Shaohua <shaohua.li@...el.com>, Brown, Len <len.brown@...el.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@...el.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@...el.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


--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ