From: Patrick Bellasi Date: Thu, 13 Oct 2016 17:13:20 +0000 (+0100) Subject: sched/fair: use SCHED_CAPACITY_SCALE for energy normalization X-Git-Tag: release-20171130_firefly~4^2~100^2~20 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7beb110baca20d98cf79d911924430e61f387ae4;p=firefly-linux-kernel-4.4.55.git sched/fair: use SCHED_CAPACITY_SCALE for energy normalization Change-Id: I686d26975f4a7dd830ff8441ff986e35461a7d55 Signed-off-by: Patrick Bellasi Signed-off-by: Srinath Sridharan --- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index cc00d92a3a2e..ef4dc3281e22 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5600,7 +5600,7 @@ struct target_nrg schedtune_target_nrg; /* * System energy normalization - * Returns the normalized value, in the range [0..SCHED_LOAD_SCALE], + * Returns the normalized value, in the range [0..SCHED_CAPACITY_SCALE], * corresponding to the specified energy variation. */ static inline int @@ -5620,7 +5620,7 @@ normalize_energy(int energy_diff) normalized_nrg = (energy_diff < 0) ? -energy_diff : energy_diff; /* Scale by energy magnitude */ - normalized_nrg <<= SCHED_LOAD_SHIFT; + normalized_nrg <<= SCHED_CAPACITY_SHIFT; /* Normalize on max energy for target platform */ normalized_nrg = reciprocal_divide(