[tip:,perf/core] x86/smp: Export symbol cpu_clustergroup_mask()

Message ID 170049093932.398.7671603015835084715.tip-bot2@tip-bot2
State New
Headers
Series [tip:,perf/core] x86/smp: Export symbol cpu_clustergroup_mask() |

Commit Message

tip-bot2 for Thomas Gleixner Nov. 20, 2023, 2:35 p.m. UTC
  The following commit has been merged into the perf/core branch of tip:

Commit-ID:     c3dd1995620cdcd65cf4944c4164b0dbc16e557c
Gitweb:        https://git.kernel.org/tip/c3dd1995620cdcd65cf4944c4164b0dbc16e557c
Author:        Kan Liang <kan.liang@linux.intel.com>
AuthorDate:    Thu, 16 Nov 2023 06:22:43 -08:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Fri, 17 Nov 2023 10:54:52 +01:00

x86/smp: Export symbol cpu_clustergroup_mask()

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 | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 2cc2aa1..3f57ce6 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -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)
 {