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

cpufreq: ACPI: Mark boost policy as enabled when setting boost

When boost is set for CPUs using acpi-cpufreq, the policy is not
updated which can cause boost to be incorrectly not reported.

Fixes: 218a06a79d9a ("cpufreq: Support per-policy performance boost")
Link: https://patch.msgid.link/20240626204723.6237-2-mario.limonciello@amd.com
Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Suggested-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Mario Limonciello and committed by
Rafael J. Wysocki
d92467ad 102fa9c4

+3 -1
+3 -1
drivers/cpufreq/acpi-cpufreq.c
··· 890 890 if (perf->states[0].core_frequency * 1000 != freq_table[0].frequency) 891 891 pr_warn(FW_WARN "P-state 0 is not max freq\n"); 892 892 893 - if (acpi_cpufreq_driver.set_boost) 893 + if (acpi_cpufreq_driver.set_boost) { 894 894 set_boost(policy, acpi_cpufreq_driver.boost_enabled); 895 + policy->boost_enabled = acpi_cpufreq_driver.boost_enabled; 896 + } 895 897 896 898 return result; 897 899