In order to make the next patch more readable, and to quantify the
actual effectiveness of this pass, start by removing it.

Signed-off-by: Peter Zijlstra (Intel) <pet...@infradead.org>
---
 kernel/sched/fair.c |   30 ------------------------------
 1 file changed, 30 deletions(-)

--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6103,27 +6103,6 @@ static int select_idle_core(struct task_
        return -1;
 }
 
-/*
- * Scan the local SMT mask for idle CPUs.
- */
-static int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int 
target)
-{
-       int cpu;
-
-       if (!static_branch_likely(&sched_smt_present))
-               return -1;
-
-       for_each_cpu(cpu, cpu_smt_mask(target)) {
-               if (!cpumask_test_cpu(cpu, p->cpus_ptr) ||
-                   !cpumask_test_cpu(cpu, sched_domain_span(sd)))
-                       continue;
-               if (available_idle_cpu(cpu) || sched_idle_cpu(cpu))
-                       return cpu;
-       }
-
-       return -1;
-}
-
 #else /* CONFIG_SCHED_SMT */
 
 #define sched_smt_weight       1
@@ -6133,11 +6112,6 @@ static inline int select_idle_core(struc
        return -1;
 }
 
-static inline int select_idle_smt(struct task_struct *p, struct sched_domain 
*sd, int target)
-{
-       return -1;
-}
-
 #endif /* CONFIG_SCHED_SMT */
 
 #define sis_min_cores          2
@@ -6334,10 +6308,6 @@ static int select_idle_sibling(struct ta
        if ((unsigned)i < nr_cpumask_bits)
                return i;
 
-       i = select_idle_smt(p, sd, target);
-       if ((unsigned)i < nr_cpumask_bits)
-               return i;
-
        return target;
 }
 


Reply via email to