We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1fe9f6 commit c7116afCopy full SHA for c7116af
drivers/cpufreq/amd-pstate.c
@@ -838,8 +838,10 @@ static void amd_pstate_update_limits(unsigned int cpu)
838
guard(mutex)(&amd_pstate_driver_lock);
839
840
ret = amd_get_highest_perf(cpu, &cur_high);
841
- if (ret)
842
- goto free_cpufreq_put;
+ if (ret) {
+ cpufreq_cpu_put(policy);
843
+ return;
844
+ }
845
846
prev_high = READ_ONCE(cpudata->prefcore_ranking);
847
highest_perf_changed = (prev_high != cur_high);
@@ -849,8 +851,6 @@ static void amd_pstate_update_limits(unsigned int cpu)
849
851
if (cur_high < CPPC_MAX_PERF)
850
852
sched_set_itmt_core_prio((int)cur_high, cpu);
853
}
-
-free_cpufreq_put:
854
cpufreq_cpu_put(policy);
855
856
if (!highest_perf_changed)
0 commit comments