On Wed, Feb 04, 2015 at 06:31:15PM +0000, Morten Rasmussen wrote:
From: Dietmar Eggemann <dietmar.eggemann@xxxxxxx>
Energy-aware load balancing should only happen if the ENERGY_AWARE feature
is turned on and the sched domain on which the load balancing is performed
on contains energy data.
There is also a need during a load balance action to be able to query if we
should continue to load balance energy-aware or if we reached the tipping
point which forces us to fall back to the conventional load balancing
functionality.
@@ -7348,6 +7349,7 @@ static int load_balance(int this_cpu, struct rq *this_rq,
.cpus = cpus,
.fbq_type = all,
.tasks = LIST_HEAD_INIT(env.tasks),
+ .use_ea = (energy_aware() && sd->groups->sge) ? true : false,
fwiw, no tipping point in that logic.