Message ID | 1925950.tdWV9SEqCh@rjwysocki.net (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | PM: EM: Two cleanups related to em_check_capacity_update() | expand |
--- a/kernel/power/energy_model.c +++ b/kernel/power/energy_model.c @@ -774,7 +774,8 @@ } cpufreq_cpu_put(policy); - pd = em_cpu_get(cpu); + dev = get_cpu_device(cpu); + pd = em_pd_get(dev); if (!pd || em_is_artificial(pd)) continue; @@ -798,7 +799,6 @@ pr_debug("updating cpu%d cpu_cap=%lu old capacity=%lu\n", cpu, cpu_capacity, em_max_perf); - dev = get_cpu_device(cpu); em_adjust_new_capacity(dev, pd); }