浏览代码

[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>
Hugh Dickins 20 年之前
父节点
当前提交
b8f68e9ffa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/x86_64/kernel/process.c

+ 1 - 0
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();
 	}