sched/fair: Restructure nohz_balance_kick()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 21 Dec 2017 09:47:48 +0000 (10:47 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Mar 2018 06:59:17 +0000 (07:59 +0100)
commit4550487a993d579c7329bb5b19e516d36800c8bf
tree9a7cf7cc6ef90d132242314ae389ab4cbb81c1ac
parentb7031a02ec753bf9b52a94a966b05e1abad3b7a9
sched/fair: Restructure nohz_balance_kick()

The current:

if (nohz_kick_needed())
nohz_balancer_kick()

is pointless complexity, fold them into a single call and avoid the
various conditions at the call site.

When we introduce multiple different needs to kick the ilb, the above
construct also becomes a problem.

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/fair.c