[PATCH] intel_idle: delete meaningless local_irq_disable() call

From: Zhang, MingmingX
Date: Tue Dec 06 2011 - 01:41:20 EST


Delete meaningless local_irq_disable() call in intel_idle.c.

intel_idle.c is a bit misleading in a sense that local_irq_disable in
it actually does nothing. Real irq disable happens earlier in process_32.c:cpu_idle.

Signed-off-by: Mingming Zhang <mingmingx.zhang@xxxxxxxxx>
---
drivers/idle/intel_idle.c | 2 --
1 file changed, 2 deletions(-)

--- linux-3.1.4/drivers/idle/intel_idle.c 2011-11-29 07:48:14.000000000 +0900
+++ linux/drivers/idle/intel_idle.c 2011-12-06 13:40:52.161155012 +0900
@@ -223,8 +223,6 @@ static int intel_idle(struct cpuidle_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.

Thanks
Mingming
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/