]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel_idle: fix API misuse
authorShaohua Li <shaohua.li@intel.com>
Tue, 10 Jan 2012 23:48:19 +0000 (15:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:56 +0000 (17:24 -0800)
commite26a6033d0d0183e613a1ae5eafefd3baf7f3e6c
treeca56051b0cf33f40befec2aa3ba414f99f9b3752
parent57700d3c569071c4c43f220de637461850d027a1
intel_idle: fix API misuse

commit 39a74fdedd1c1461d6fb6d330b5266886513c98f upstream.

smp_call_function() only lets all other CPUs execute a specific function,
while we expect all CPUs do in intel_idle.  Without the fix, we could have
one cpu which has auto_demotion enabled or has no broadcast timer setup.
Usually we don't see impact because auto demotion just harms power and the
intel_idle init is called in CPU 0, where boradcast timer delivers
interrupt, but this still could be a problem.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/idle/intel_idle.c