sched/fair: use SCHED_CAPACITY_SCALE for energy normalization
authorPatrick Bellasi <patrick.bellasi@arm.com>
Thu, 13 Oct 2016 17:13:20 +0000 (18:13 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:49 +0000 (16:37 +0530)
Change-Id: I686d26975f4a7dd830ff8441ff986e35461a7d55
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Signed-off-by: Srinath Sridharan <srinathsr@google.com>
kernel/sched/fair.c

index cc00d92a3a2e1e01be373991a84d2154fd15d1e3..ef4dc3281e2236ac7693a42fc8da49d2b749c3a7 100644 (file)
@@ -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(