intel_idle: fix API misuse
authorShaohua Li <shaohua.li@intel.com>
Tue, 10 Jan 2012 23:48:19 +0000 (15:48 -0800)
committerLen Brown <len.brown@intel.com>
Tue, 17 Jan 2012 10:15:36 +0000 (05:15 -0500)
commit39a74fdedd1c1461d6fb6d330b5266886513c98f
treef5b2e18a41684dfa8df7aa24015576236f1f7d8d
parent805a6af8dba5dfdd35ec35dc52ec0122400b2610
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 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.

Cc: stable@vger.kernel.org
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>
drivers/idle/intel_idle.c