aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-09-12 12:49:24 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 13:50:55 -0400
commitb8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e (patch)
treefc3775daf2933afac248f2989f0d647e4e49b3af /arch
parente99b861a3e9ec93a48b985519e09b2515c201e8d (diff)
[PATCH] x86-64: Fix idle=poll
x86_64 idle=poll might be a little less responsive than it should: unlike mwait_idle, and unlike i386, its poll_idle left TIF_POLLING_NRFLAG set. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/kernel/process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/process.c b/arch/x86_64/kernel/process.c
index b19cee6a12e6..e9f35c60f8c6 100644
--- a/arch/x86_64/kernel/process.c
+++ b/arch/x86_64/kernel/process.c
@@ -123,6 +123,7 @@ static void poll_idle (void)
123 : : 123 : :
124 "i" (_TIF_NEED_RESCHED), 124 "i" (_TIF_NEED_RESCHED),
125 "m" (current_thread_info()->flags)); 125 "m" (current_thread_info()->flags));
126 clear_thread_flag(TIF_POLLING_NRFLAG);
126 } else { 127 } else {
127 set_need_resched(); 128 set_need_resched();
128 } 129 }