]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel_idle: fix API misuse
authorShaohua Li <shaohua.li@intel.com>
Fri, 2 Dec 2011 03:12:07 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Dec 2011 05:32:49 +0000 (16:32 +1100)
commit057ffc999fc95db688116f65a959f452932ff19b
tree8119e227a4ca55e8eddf8852ad88f8c7be93cfc4
parentdd60312fcbbbc265dc32f2681711f41a0674affc
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