Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/fair: Remove select_idle_smt()

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: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210125085909.4600-4-mgorman@techsingularity.net

authored by

Mel Gorman and committed by
Ingo Molnar
6cd56ef1 ed3cd45f

-30
-30
kernel/sched/fair.c
··· 6114 6114 return -1; 6115 6115 } 6116 6116 6117 - /* 6118 - * Scan the local SMT mask for idle CPUs. 6119 - */ 6120 - static int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target) 6121 - { 6122 - int cpu; 6123 - 6124 - if (!static_branch_likely(&sched_smt_present)) 6125 - return -1; 6126 - 6127 - for_each_cpu(cpu, cpu_smt_mask(target)) { 6128 - if (!cpumask_test_cpu(cpu, p->cpus_ptr) || 6129 - !cpumask_test_cpu(cpu, sched_domain_span(sd))) 6130 - continue; 6131 - if (available_idle_cpu(cpu) || sched_idle_cpu(cpu)) 6132 - return cpu; 6133 - } 6134 - 6135 - return -1; 6136 - } 6137 - 6138 6117 #else /* CONFIG_SCHED_SMT */ 6139 6118 6140 6119 static inline int select_idle_core(struct task_struct *p, struct sched_domain *sd, int target) 6141 - { 6142 - return -1; 6143 - } 6144 - 6145 - static inline int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target) 6146 6120 { 6147 6121 return -1; 6148 6122 } ··· 6307 6333 return i; 6308 6334 6309 6335 i = select_idle_cpu(p, sd, target); 6310 - if ((unsigned)i < nr_cpumask_bits) 6311 - return i; 6312 - 6313 - i = select_idle_smt(p, sd, target); 6314 6336 if ((unsigned)i < nr_cpumask_bits) 6315 6337 return i; 6316 6338