arm: topology: only build cpu_corepower_mask if needed
PATCH 1/1 arm: topology: only build cpu_corepower_mask if needed
The cpu_corepower_mask() is only needed if CONFIG_SCHED_MC is enabled, so remove the warning about it not being used by ifdef-ing it out.
fixes the following build warning:
arch/arm/kernel/topology.c:184:30: warning: ‘cpu_corepower_mask’ defined but not used [-Wunused-function]
184 | static const struct cpumask *cpu_corepower_mask(int cpu)
Signed-off-by Ben Dooks <[email protected]>
---
KernelVersion: 5.4-rc3
Cc Russell King <[email protected]>
--- arch/arm/kernel/topology.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/kernel/topology.c +2 -0
@@ -177,6 +177,7 @@ static inline void parse_dt_topology(void) {}static inline void update_cpu_capacity (unsigned int cpuid) {}#endif +#ifdef CONFIG_SCHED_MC /* * The current assumption is that we can power gate each core independently. * This will be superseded by DT binding once available.
@@ -185,6 +186,7 @@ static const struct cpumask *cpu_corepower_mask(int cpu) {return &cpu_topology[cpu].thread_sibling; } +#endif /* * store_cpu_topology is called at boot when only one cpu is running
Signature · 1 line
2.23.0