]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cppc_cpufreq: Remove HiSilicon CPPC workaround
authorJie Zhan <zhanjie9@hisilicon.com>
Sun, 29 Sep 2024 03:32:14 +0000 (11:32 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2024 05:39:44 +0000 (11:09 +0530)
commitea1829d4d413bc38774703acfc266472f7bc0bb5
treed560678a6f9a46d2e6feb2d14d2b38f7b16b084b
parentc47195631960b626058c335aec31f186fa854f97
cppc_cpufreq: Remove HiSilicon CPPC workaround

Since commit 6c8d750f9784 ("cpufreq / cppc: Work around for Hisilicon CPPC
cpufreq"), we introduce a workround for HiSilicon platforms that do not
support performance feedback counters, whereas they can get the actual
frequency from the desired perf register.  Later on, FIE is disabled in
that workaround as well.

Now the workround can be handled by the common code.  Desired perf would be
read and converted to frequency if feedback counters don't change.  FIE
would be disabled if the CPPC regs are in PCC region.

Hence, the workaround is no longer needed and can be safely removed, in an
effort to consolidate the driver procedure.

Signed-off-by: Jie Zhan <zhanjie9@hisilicon.com>
Reviewed-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: Huisong Li <lihuisong@huawei.com>
[ Viresh: Move fie_disabled withing CONFIG option to fix warning ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cppc_cpufreq.c