diff options
author | Joe Korty <joe.korty@ccur.com> | 2008-08-27 18:35:06 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-28 13:29:48 +0400 |
commit | 2c7e9fd4c6cb7f4b0bc7162e9a30847e51a1ca1b (patch) | |
tree | 66b3e67895a115af4ae79ad6e8dbe36957c5d3f7 /include/asm-x86/asm.h | |
parent | 4c246edd2550304df5b766cc841584b2bb058843 (diff) | |
download | linux-2c7e9fd4c6cb7f4b0bc7162e9a30847e51a1ca1b.tar.xz |
x86: make poll_idle behave more like the other idle methods
Make poll_idle() behave more like the other idle methods.
Currently, poll_idle() returns immediately. The other
idle methods all wait indefinately for some condition
to come true before returning. poll_idle should emulate
these other methods and also wait for a return condition,
in this case, for need_resched() to become 'true'.
Without this delay the idle loop spends all of its time
in the outer loop that calls poll_idle. This outer loop,
these days, does real work, some of it under rcu locks.
That work should only be done when idle is entered and
when idle exits, not continuously while idle is spinning.
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/asm.h')
0 files changed, 0 insertions, 0 deletions