File tree Expand file tree Collapse file tree 4 files changed +208
-281
lines changed Expand file tree Collapse file tree 4 files changed +208
-281
lines changed Original file line number Diff line number Diff line change @@ -808,19 +808,16 @@ static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata)
808
808
sched_set_itmt_core_prio ((int )READ_ONCE (cpudata -> prefcore_ranking ), cpudata -> cpu );
809
809
}
810
810
811
- static void amd_pstate_update_limits (unsigned int cpu )
811
+ static void amd_pstate_update_limits (struct cpufreq_policy * policy )
812
812
{
813
- struct cpufreq_policy * policy __free (put_cpufreq_policy ) = cpufreq_cpu_get (cpu );
814
813
struct amd_cpudata * cpudata ;
815
814
u32 prev_high = 0 , cur_high = 0 ;
816
815
bool highest_perf_changed = false;
816
+ unsigned int cpu = policy -> cpu ;
817
817
818
818
if (!amd_pstate_prefcore )
819
819
return ;
820
820
821
- if (!policy )
822
- return ;
823
-
824
821
if (amd_get_highest_perf (cpu , & cur_high ))
825
822
return ;
826
823
You can’t perform that action at this time.
0 commit comments