Skip to content

Commit d40605a

Browse files
auldpIngo Molnar
authored andcommitted
sched/x86: Export 'percpu arch_freq_scale'
Commit: 7bc2638 ("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
1 parent 49217ea commit d40605a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/cpu/aperfmperf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ static DECLARE_WORK(disable_freq_invariance_work,
345345
disable_freq_invariance_workfn);
346346

347347
DEFINE_PER_CPU(unsigned long, arch_freq_scale) = SCHED_CAPACITY_SCALE;
348+
EXPORT_PER_CPU_SYMBOL_GPL(arch_freq_scale);
348349

349350
static void scale_freq_tick(u64 acnt, u64 mcnt)
350351
{

0 commit comments

Comments
 (0)