]> 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>
Tue, 4 Oct 2011 07:38:41 +0000 (18:38 +1100)
commit894f76069cae8ece8d410d2cbae04d6cc1410403
tree82fbfa7ff18adaf9a18fe55bfe6dcad72f422611
parentd00fcbd1c4f1da71da94230ec1c61ae91b51faa4
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