sched/fair: Add NOHZ_STATS_KICK
authorPeter Zijlstra <peterz@infradead.org>
Thu, 21 Dec 2017 09:11:09 +0000 (10:11 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Mar 2018 06:59:16 +0000 (07:59 +0100)
commitb7031a02ec753bf9b52a94a966b05e1abad3b7a9
tree0a5d1d9105bce0a900850e6704e808d345751668
parenta22e47a4e3f5a9e50a827c5d94705ace3b1eac0b
sched/fair: Add NOHZ_STATS_KICK

Split the NOHZ idle balancer into doing two separate actions:

 - update blocked load statistic

 - actually load-balance

Since the latter requires the former, ensure this happens. For now
always tag both bits at the same time.

Prepares for a future where we can toggle only the STATS bit.

Suggested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/sched.h