]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel_idle: fix API misuse
authorShaohua Li <shaohua.li@intel.com>
Mon, 24 Oct 2011 14:58:33 +0000 (01:58 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:29 +0000 (13:40 +1100)
commit102fb41a8f329511ffb21afcd4a12465a0440ba6
tree105d6d76527d0974ad706860d583149c3a59b9b3
parent64d4fb1ec7f74168b0307368a70796b89cc69e98
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 <akpm@linux-foundation.org>
drivers/idle/intel_idle.c