x86/sched: Enable cluster scheduling on Hybrid
authorPeter Zijlstra <peterz@infradead.org>
Sat, 8 Jul 2023 12:43:45 +0000 (14:43 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 13 Jul 2023 13:21:53 +0000 (15:21 +0200)
With the SMT vs non-SMT balancing issues sorted, also enable the
cluster domain for Hybrid machines.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
arch/x86/kernel/smpboot.c

index e1aa2cd..4c31447 100644 (file)
@@ -632,14 +632,9 @@ static void __init build_sched_topology(void)
        };
 #endif
 #ifdef CONFIG_SCHED_CLUSTER
-       /*
-        * For now, skip the cluster domain on Hybrid.
-        */
-       if (!cpu_feature_enabled(X86_FEATURE_HYBRID_CPU)) {
-               x86_topology[i++] = (struct sched_domain_topology_level){
-                       cpu_clustergroup_mask, x86_cluster_flags, SD_INIT_NAME(CLS)
-               };
-       }
+       x86_topology[i++] = (struct sched_domain_topology_level){
+               cpu_clustergroup_mask, x86_cluster_flags, SD_INIT_NAME(CLS)
+       };
 #endif
 #ifdef CONFIG_SCHED_MC
        x86_topology[i++] = (struct sched_domain_topology_level){