Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

cpufreq/amd-pstate: Update asym_prefer_cpu when core rankings change

A subset of AMD systems supporting Preferred Core rankings can have
their rankings changed dynamically at runtime. Update the
"sg->asym_prefer_cpu" across the local hierarchy of CPU when the
preferred core ranking changes.

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250409053446.23367-4-kprateek.nayak@amd.com

authored by

K Prateek Nayak and committed by
Peter Zijlstra
8157fbc9 0e3f6c36

+3 -1
+3 -1
drivers/cpufreq/amd-pstate.c
··· 844 844 if (highest_perf_changed) { 845 845 WRITE_ONCE(cpudata->prefcore_ranking, cur_high); 846 846 847 - if (cur_high < CPPC_MAX_PERF) 847 + if (cur_high < CPPC_MAX_PERF) { 848 848 sched_set_itmt_core_prio((int)cur_high, cpu); 849 + sched_update_asym_prefer_cpu(cpu, prev_high, cur_high); 850 + } 849 851 } 850 852 } 851 853