]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: EM: Move sched domains rebuild function from schedutil to EM
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Dec 2024 12:01:02 +0000 (13:01 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 Dec 2024 19:32:13 +0000 (20:32 +0100)
commitebeeee390b6a341770789a50d81e677da9a103d9
treec002ff59654aa59ba92c6e695165901bf51d0af5
parent78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
PM: EM: Move sched domains rebuild function from schedutil to EM

Function sugov_eas_rebuild_sd() defined in the schedutil cpufreq governor
implements generic functionality that may be useful in other places.  In
particular, there is a plan to use it in the intel_pstate driver in the
future.

For this reason, move it from schedutil to the energy model code and
rename it to em_rebuild_sched_domains().

This also helps to get rid of some #ifdeffery in schedutil which is a
plus.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
drivers/cpufreq/cpufreq.c
include/linux/energy_model.h
kernel/power/energy_model.c
kernel/sched/cpufreq_schedutil.c