Skip to content

Commit f526a12

Browse files
committed
Merge commit 'eaff6b62d343' of pm/linux-next into commit 'f720efda2db5' of driver-core/driver-core-next
Merge cpufreq dependencies from the PM tree with driver-core dependencies.
2 parents f720efd + eaff6b6 commit f526a12

File tree

4 files changed

+176
-233
lines changed

4 files changed

+176
-233
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -821,19 +821,16 @@ static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata)
821821
schedule_work(&sched_prefcore_work);
822822
}
823823

824-
static void amd_pstate_update_limits(unsigned int cpu)
824+
static void amd_pstate_update_limits(struct cpufreq_policy *policy)
825825
{
826-
struct cpufreq_policy *policy __free(put_cpufreq_policy) = cpufreq_cpu_get(cpu);
827826
struct amd_cpudata *cpudata;
828827
u32 prev_high = 0, cur_high = 0;
829828
bool highest_perf_changed = false;
829+
unsigned int cpu = policy->cpu;
830830

831831
if (!amd_pstate_prefcore)
832832
return;
833833

834-
if (!policy)
835-
return;
836-
837834
if (amd_get_highest_perf(cpu, &cur_high))
838835
return;
839836

0 commit comments

Comments
 (0)