sched: Disable energy-unfriendly nohz kicks
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 3 Feb 2015 13:54:11 +0000 (13:54 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commit687f1b3502b038d9bb892fee4895880540ce6292
tree89394b95fd54a9ad7c4e04a2aa8c2a646f859764
parent8ca5b3ac6be0f13128aeabb81cc7dddd86da1f07
sched: Disable energy-unfriendly nohz kicks

With energy-aware scheduling enabled nohz_kick_needed() generates many
nohz idle-balance kicks which lead to nothing when multiple tasks get
packed on a single cpu to save energy. This causes unnecessary wake-ups
and hence wastes energy. Make these conditions depend on !energy_aware()
for now until the energy-aware nohz story gets sorted out.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/fair.c