x86/smp: Export symbol cpu_clustergroup_mask()
authorKan Liang <kan.liang@linux.intel.com>
Thu, 16 Nov 2023 14:22:43 +0000 (06:22 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Nov 2023 09:54:52 +0000 (10:54 +0100)
Intel cstate PMU driver will invoke the topology_cluster_cpumask() to
retrieve the CPU mask of a cluster. A modpost error is triggered since
the symbol cpu_clustergroup_mask is not exported.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231116142245.1233485-2-kan.liang@linux.intel.com
arch/x86/kernel/smpboot.c

index 2cc2aa120b4b390550178e1df5b916a2bdfacf2f..3f57ce68a3f1ec9c6fe742c08a008d89f65f3f97 100644 (file)
@@ -757,6 +757,7 @@ const struct cpumask *cpu_clustergroup_mask(int cpu)
 {
        return cpu_l2c_shared_mask(cpu);
 }
+EXPORT_SYMBOL_GPL(cpu_clustergroup_mask);
 
 static void impress_friends(void)
 {