summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/process.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-09-12 18:49:24 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 10:50:55 -0700
commitb8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e (patch)
treefc3775daf2933afac248f2989f0d647e4e49b3af /arch/x86_64/kernel/process.c
parente99b861a3e9ec93a48b985519e09b2515c201e8d (diff)
downloadlinux-b8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e.tar.gz
linux-b8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e.tar.bz2
linux-b8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e.zip
[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/x86_64/kernel/process.c')
-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)
: :
"i" (_TIF_NEED_RESCHED),
"m" (current_thread_info()->flags));
+ clear_thread_flag(TIF_POLLING_NRFLAG);
} else {
set_need_resched();
}