提交 b8f68e9f 编写于 作者: H Hugh Dickins 提交者: Linus Torvalds

[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: NHugh Dickins <hugh@veritas.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e99b861a
...@@ -123,6 +123,7 @@ static void poll_idle (void) ...@@ -123,6 +123,7 @@ static void poll_idle (void)
: : : :
"i" (_TIF_NEED_RESCHED), "i" (_TIF_NEED_RESCHED),
"m" (current_thread_info()->flags)); "m" (current_thread_info()->flags));
clear_thread_flag(TIF_POLLING_NRFLAG);
} else { } else {
set_need_resched(); set_need_resched();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册