Skip to content

Commit 991d8d8

Browse files
deggemanPeter Zijlstra
authored andcommitted
topology: Remove unused cpu_cluster_mask()
default_topology[] uses cpu_clustergroup_mask() for the CLS level (guarded by CONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c). Fixes: 778c558 ("sched: Add cluster scheduler level in core and related Kconfig for ARM64") Signed-off-by: Dietmar Eggemann <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Barry Song <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 546a3fe commit 991d8d8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/linux/topology.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu)
240240
}
241241
#endif
242242

243-
#if defined(CONFIG_SCHED_CLUSTER) && !defined(cpu_cluster_mask)
244-
static inline const struct cpumask *cpu_cluster_mask(int cpu)
245-
{
246-
return topology_cluster_cpumask(cpu);
247-
}
248-
#endif
249-
250243
static inline const struct cpumask *cpu_cpu_mask(int cpu)
251244
{
252245
return cpumask_of_node(cpu_to_node(cpu));

0 commit comments

Comments
 (0)