summaryrefslogtreecommitdiff
path: root/arch/x86_64/kernel/process.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-09-12 16:49:24 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 17:50:55 (GMT)
commitb8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e (patch)
treefc3775daf2933afac248f2989f0d647e4e49b3af /arch/x86_64/kernel/process.c
parente99b861a3e9ec93a48b985519e09b2515c201e8d (diff)
downloadlinux-fsl-qoriq-b8f68e9ffaf5e7c9c463ecd2598cc33f8e6df75e.tar.xz
[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 b19cee6..e9f35c6 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();
}