intel_idle: remove redundant local_irq_disable() call
authorYanmin Zhang <yanmin_zhang@linux.intel.com>
Tue, 10 Jan 2012 23:48:21 +0000 (15:48 -0800)
committerLen Brown <len.brown@intel.com>
Tue, 17 Jan 2012 19:19:58 +0000 (14:19 -0500)
commit63ff07beaebef2a82da41cf04053ae88b579226d
treea7a7dfc0c1a2de4d2b45e6762226760f44bbc076
parent39a74fdedd1c1461d6fb6d330b5266886513c98f
intel_idle: remove redundant local_irq_disable() call

irq disabling 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.  Remove the call to local_irq_disable() at
entry.

[akpm@linux-foundation.org: add comment]
Signed-off-by: Mingming Zhang <mingmingx.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/idle/intel_idle.c