sched/x86: Export 'percpu arch_freq_scale'
authorPhil Auld <pauld@redhat.com>
Thu, 30 May 2024 18:15:48 +0000 (14:15 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 May 2024 09:48:42 +0000 (11:48 +0200)
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@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240530181548.2039216-1-pauld@redhat.com
arch/x86/kernel/cpu/aperfmperf.c

index f9a8c7b7943fb2c6de232ae56b02ccefcc1504ee..b3fa61d45352e7120d7be7fb5cdb9d6f071c9729 100644 (file)
@@ -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)
 {