
16 Mar
2021
16 Mar
'21
5:59 a.m.
On 3/15/21 2:17 PM, Song Bao Hua (Barry Song) wrote:
Yes. This is one of the needs. The other one is that [RFC PATCH v4 2/3] scheduler: add scheduler level for clusters depends on a valid cpu_cluster_mask()
+#if defined(CONFIG_SCHED_CLUSTER) && !defined(cpu_cluster_mask) +static inline const struct cpumask *cpu_cluster_mask(int cpu) +{ + return topology_cluster_cpumask(cpu); +} +#endif
Is x86's code able to return a valid cluster mask?
Okay, need to redefine the topology_cluster_cpumask to cpu_clustergroup_mask in x86 for the correct mask. Will update my patch. Tim