]> git.baikalelectronics.ru Git - kernel.git/commit
sched/idle: Delay clearing the polling bit
authorPeter Zijlstra <peterz@infradead.org>
Fri, 11 Apr 2014 11:47:16 +0000 (13:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 8 May 2014 07:16:58 +0000 (09:16 +0200)
commit07f9291463e8f2daaf5d9fb4ac0670a525e7d8fc
treea03cc217b98a5a0d0072258a5da364406fb5df99
parent1c3d2087a360713c1beb1b001fa0c3424521be3d
sched/idle: Delay clearing the polling bit

With the generic idle functions assuming !polling we should only clear
the polling bit at the very last opportunity in order to avoid
spurious IPIs.

Ideally we'd flip the default to polling, but that means auditing all
arch idle functions.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-vq7719foqzf6z5h4j7eh7f9e@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/idle.c