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.
2 parents f720efd + eaff6b6 commit f526a12Copy full SHA for f526a12
drivers/cpufreq/amd-pstate.c
@@ -821,19 +821,16 @@ static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata)
821
schedule_work(&sched_prefcore_work);
822
}
823
824
-static void amd_pstate_update_limits(unsigned int cpu)
+static void amd_pstate_update_limits(struct cpufreq_policy *policy)
825
{
826
- struct cpufreq_policy *policy __free(put_cpufreq_policy) = cpufreq_cpu_get(cpu);
827
struct amd_cpudata *cpudata;
828
u32 prev_high = 0, cur_high = 0;
829
bool highest_perf_changed = false;
+ unsigned int cpu = policy->cpu;
830
831
if (!amd_pstate_prefcore)
832
return;
833
834
- if (!policy)
835
- return;
836
-
837
if (amd_get_highest_perf(cpu, &cur_high))
838
839
0 commit comments