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 e5aeac7 commit 704fdc5Copy full SHA for 704fdc5
drivers/cpufreq/amd-pstate.c
@@ -796,8 +796,10 @@ static void amd_pstate_update_limits(unsigned int cpu)
796
guard(mutex)(&amd_pstate_driver_lock);
797
798
ret = amd_get_highest_perf(cpu, &cur_high);
799
- if (ret)
800
- goto free_cpufreq_put;
+ if (ret) {
+ cpufreq_cpu_put(policy);
801
+ return;
802
+ }
803
804
prev_high = READ_ONCE(cpudata->prefcore_ranking);
805
highest_perf_changed = (prev_high != cur_high);
@@ -807,8 +809,6 @@ static void amd_pstate_update_limits(unsigned int cpu)
807
809
if (cur_high < CPPC_MAX_PERF)
808
810
sched_set_itmt_core_prio((int)cur_high, cpu);
811
}
-
-free_cpufreq_put:
812
cpufreq_cpu_put(policy);
813
814
if (!highest_perf_changed)
0 commit comments