#ifdef CONFIG_SCHED_SMT
 /* Forward declarations of select_idle_sibling helpers */
-static inline bool test_idle_cores(int cpu, bool def);
+static inline bool test_idle_cores(int cpu);
 static inline int numa_idle_core(int idle_core, int cpu)
 {
        if (!static_branch_likely(&sched_smt_present) ||
-           idle_core >= 0 || !test_idle_cores(cpu, false))
+           idle_core >= 0 || !test_idle_cores(cpu))
                return idle_core;
 
        /*
                WRITE_ONCE(sds->has_idle_cores, val);
 }
 
-static inline bool test_idle_cores(int cpu, bool def)
+static inline bool test_idle_cores(int cpu)
 {
        struct sched_domain_shared *sds;
 
        if (sds)
                return READ_ONCE(sds->has_idle_cores);
 
-       return def;
+       return false;
 }
 
 /*
        int cpu;
 
        rcu_read_lock();
-       if (test_idle_cores(core, true))
+       if (test_idle_cores(core))
                goto unlock;
 
        for_each_cpu(cpu, cpu_smt_mask(core)) {
 {
 }
 
-static inline bool test_idle_cores(int cpu, bool def)
+static inline bool test_idle_cores(int cpu)
 {
-       return def;
+       return false;
 }
 
 static inline int select_idle_core(struct task_struct *p, int core, struct cpumask *cpus, int *idle_cpu)
                return target;
 
        if (sched_smt_active()) {
-               has_idle_core = test_idle_cores(target, false);
+               has_idle_core = test_idle_cores(target);
 
                if (!has_idle_core && cpus_share_cache(prev, target)) {
                        i = select_idle_smt(p, prev);