Re: [PATCH v3] cpufreq/cppc: Remove the desired_perf compare when set target

From: Riwen Lu
Date: Fri Jun 14 2024 - 08:13:21 EST


在 2024/6/12 14:24, Viresh Kumar 写道:
On 12-06-24, 10:52, Riwen Lu wrote:
I think it's no need to remove the "desired_perf" local variable here, the
code is seems more readable.

There is no need of a temporary variable and I don't think it increases
readability at all. Moreover, same needs to be done in
cppc_cpufreq_fast_switch() too.

OK. I'll push a patch that remove the desired_perf temporary in cppc_cpufreq_fast_switch().