Skip to content
Commit 25cc5521 authored by Sibi Sankar's avatar Sibi Sankar Committed by Sasha Levin
Browse files

cpufreq: Fix per-policy boost behavior on SoCs using cpufreq_boost_set_sw()

[ Upstream commit f37a4d6b ]

In the existing code, per-policy flags don't have any impact i.e.
if cpufreq_driver boost is enabled and boost is disabled for one or
more of the policies, the cpufreq driver will behave as if boost is
enabled.

Fix this by incorporating per-policy boost flag in the policy->max
computation used in cpufreq_frequency_table_cpuinfo and setting the
default per-policy boost to mirror the cpufreq_driver boost flag.

Fixes: 218a06a7

 ("cpufreq: Support per-policy performance boost")
Reported-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarSibi Sankar <quic_sibis@quicinc.com>
Tested-by: default avatarYipeng Zou &lt;zouyipeng@huawei.com&gt; <mailto:zouyipeng@huawei.com>
Reviewed-by: default avatarYipeng Zou &lt;zouyipeng@huawei.com&gt; <mailto:zouyipeng@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3c2cb3de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment