sched/fair: Do not force want_affine eq. true if EAS is enabled
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Thu, 1 Dec 2016 18:37:58 +0000 (18:37 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:28 +0000 (16:37 +0530)
This lets us use Capacity-Aware Scheduling (CAS) if EAS is enabled.

Change-Id: I2e647a201ea0b733d1487c3e153047a49fb22847
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
(cherry picked from commit 00b7da2ae58bf568529e67614980f77e275b8d29)
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c

index 87c03eaacec403f87e55a0eb5f5d87a94a85b156..976e7457b4fa94d2b9e9f61c759ce487e35e61f1 100644 (file)
@@ -6016,9 +6016,8 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
        int sync = wake_flags & WF_SYNC;
 
        if (sd_flag & SD_BALANCE_WAKE)
-               want_affine = (!wake_wide(p) && !wake_cap(p, cpu, prev_cpu)
-                                       && cpumask_test_cpu(cpu, tsk_cpus_allowed(p))) ||
-                             energy_aware();
+               want_affine = !wake_wide(p) && !wake_cap(p, cpu, prev_cpu)
+                             && cpumask_test_cpu(cpu, tsk_cpus_allowed(p));
 
        rcu_read_lock();
        for_each_domain(cpu, tmp) {