[PATCH] sched,x86: export percpu arch_freq_scale
From: Phil Auld
Date: Thu May 30 2024 - 14:15:59 EST
Commit 7bc263840bc3 ("sched/topology: Consolidate and clean up
access to a CPU's max compute capacity") removed rq->cpu_capacity_orig
in favor of using arch_scale_freq_capacity() calls. Export the
underlying percpu symbol on x86 so that external trace point helper
modules can be made to work again.
Signed-off-by: Phil Auld <pauld@xxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Borislav Petkov <bp@xxxxxxxxx>
Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
Cc: x86@xxxxxxxxxx
Cc: Tony Luck <tony.luck@xxxxxxxxx>
Cc: Qais Yousef <qyousef@xxxxxxxxxxx>
---
arch/x86/kernel/cpu/aperfmperf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/cpu/aperfmperf.c b/arch/x86/kernel/cpu/aperfmperf.c
index f9a8c7b7943f..b3fa61d45352 100644
--- a/arch/x86/kernel/cpu/aperfmperf.c
+++ b/arch/x86/kernel/cpu/aperfmperf.c
@@ -345,6 +345,7 @@ static DECLARE_WORK(disable_freq_invariance_work,
disable_freq_invariance_workfn);
DEFINE_PER_CPU(unsigned long, arch_freq_scale) = SCHED_CAPACITY_SCALE;
+EXPORT_PER_CPU_SYMBOL_GPL(arch_freq_scale);
static void scale_freq_tick(u64 acnt, u64 mcnt)
{
--
2.43.0