Skip to content

Commit 400da80

Browse files
committed
Merge back cpufreq material for 6.16
2 parents ac4e04d + 121baab commit 400da80

File tree

4 files changed

+208
-281
lines changed

4 files changed

+208
-281
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,19 +808,16 @@ static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata)
808808
sched_set_itmt_core_prio((int)READ_ONCE(cpudata->prefcore_ranking), cpudata->cpu);
809809
}
810810

811-
static void amd_pstate_update_limits(unsigned int cpu)
811+
static void amd_pstate_update_limits(struct cpufreq_policy *policy)
812812
{
813-
struct cpufreq_policy *policy __free(put_cpufreq_policy) = cpufreq_cpu_get(cpu);
814813
struct amd_cpudata *cpudata;
815814
u32 prev_high = 0, cur_high = 0;
816815
bool highest_perf_changed = false;
816+
unsigned int cpu = policy->cpu;
817817

818818
if (!amd_pstate_prefcore)
819819
return;
820820

821-
if (!policy)
822-
return;
823-
824821
if (amd_get_highest_perf(cpu, &cur_high))
825822
return;
826823

0 commit comments

Comments
 (0)