diff options
| author | 2025-11-07 13:11:45 +0530 | |
|---|---|---|
| committer | 2025-11-10 23:35:20 -0600 | |
| commit | bb31fef0d03ed17d587b40e3458786be408fb9df (patch) | |
| tree | 8081661f25030c1ab32805927c0268714eccfa86 /tools/objtool/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | cpufreq/amd-pstate: Add static asserts for EPP indices (diff) | |
cpufreq/amd-pstate: Call cppc_set_auto_sel() only for online CPUs
amd_pstate_change_mode_without_dvr_change() calls cppc_set_auto_sel()
for all the present CPUs.
However, this callpath eventually calls cppc_set_reg_val() which
accesses the per-cpu cpc_desc_ptr object. This object is initialized
only for online CPUs via acpi_soft_cpu_online() -->
__acpi_processor_start() --> acpi_cppc_processor_probe().
Hence, restrict calling cppc_set_auto_sel() to only the online CPUs.
Fixes: 3ca7bc818d8c ("cpufreq: amd-pstate: Add guided mode control support via sysfs")
Suggested-by: Mario Limonciello (AMD) (kernel.org) <superm1@kernel.org>
Signed-off-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Diffstat (limited to 'tools/objtool/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
