]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PM: EM: Drop unused parameter from em_adjust_new_capacity()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 21 Oct 2025 19:22:22 +0000 (15:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:08:53 +0000 (14:08 +0100)
[ Upstream commit 5fad775d432c6c9158ea12e7e00d8922ef8d3dfc ]

The max_cap parameter is never used in em_adjust_new_capacity(), so
drop it.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/2369979.ElGaqSPkdT@rjwysocki.net
Stable-dep-of: 1ebe8f7e7825 ("PM: EM: Fix late boot with holes in CPU topology")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/energy_model.c

index 1c9fe741fe6d53857152b6607ba2737b2958a1e7..8ee72c6c1daf34cb81b2cf0871cac89930d468d4 100644 (file)
@@ -723,8 +723,7 @@ free_em_table:
  * are correctly calculated.
  */
 static void em_adjust_new_capacity(struct device *dev,
-                                  struct em_perf_domain *pd,
-                                  u64 max_cap)
+                                  struct em_perf_domain *pd)
 {
        struct em_perf_table *em_table;
 
@@ -795,7 +794,7 @@ static void em_check_capacity_update(void)
                         cpu, cpu_capacity, em_max_perf);
 
                dev = get_cpu_device(cpu);
-               em_adjust_new_capacity(dev, pd, cpu_capacity);
+               em_adjust_new_capacity(dev, pd);
        }
 
        free_cpumask_var(cpu_done_mask);