]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: Do not use poll_idle unless user asks for it
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Thu, 31 Jul 2008 02:21:42 +0000 (19:21 -0700)
committerAndi Kleen <ak@linux.intel.com>
Fri, 15 Aug 2008 19:25:25 +0000 (21:25 +0200)
commit13cee0ac08dcc31b58ef385d65ccab909ddd5ca1
tree7bd9df24a4dc5ce24f944c1d70e0d96fcd0dc882
parent51ca3452ccd1358baf8f77979ed85173af346559
cpuidle: Do not use poll_idle unless user asks for it

poll_idle was added to CPUIDLE, just as a low latency idle handler, to be
used in cases when user desires CPUs not to enter any idle state at all. It
was supposed to be a run time idle=poll option to the user. But, it was indeed
getting used during normal menu and ladder governor default case, with no
special user setting (Reported by Linus Torvalds).

Change below ensures that poll_idle will not be used unless user explicitly
asks pm_qos infrastructure for zero latency requirement.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/cpuidle/governors/ladder.c
drivers/cpuidle/governors/menu.c