We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac4e04d + 121baab commit 400da80Copy full SHA for 400da80
4 files changed
drivers/cpufreq/amd-pstate.c
@@ -808,19 +808,16 @@ static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata)
808
sched_set_itmt_core_prio((int)READ_ONCE(cpudata->prefcore_ranking), cpudata->cpu);
809
}
810
811
-static void amd_pstate_update_limits(unsigned int cpu)
+static void amd_pstate_update_limits(struct cpufreq_policy *policy)
812
{
813
- struct cpufreq_policy *policy __free(put_cpufreq_policy) = cpufreq_cpu_get(cpu);
814
struct amd_cpudata *cpudata;
815
u32 prev_high = 0, cur_high = 0;
816
bool highest_perf_changed = false;
+ unsigned int cpu = policy->cpu;
817
818
if (!amd_pstate_prefcore)
819
return;
820
821
- if (!policy)
822
- return;
823
-
824
if (amd_get_highest_perf(cpu, &cur_high))
825
826
0 commit comments