]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel_idle: fix API misuse
authorShaohua Li <shaohua.li@intel.com>
Wed, 28 Sep 2011 00:50:28 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Sep 2011 06:08:13 +0000 (16:08 +1000)
commit157f25258755f6e0ee7aec1e010cf21edfe968da
tree5910190f2a1dfdd3366e2829f7e854c836e9dbb2
parentc40e119712ab0d574265d3e42af058e48a58758e
intel_idle: fix API misuse

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 boradcast 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>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <>
drivers/idle/intel_idle.c