BACKPORT: sched/topology,schedutil: Wrap sched domains rebuild
Add the rebuild_sched_domains_energy() function to wrap the functionality that rebuilds the scheduling domains if any of the Energy Aware Scheduling (EAS) initialisation conditions change. This functionality is used when schedutil is added or removed or when EAS is enabled or disabled through the sched_energy_aware sysctl. Therefore, create a single function that is used in both these cases and that can be later reused. Signed-off-by:Ionela Voinescu <ionela.voinescu@arm.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by:
Quentin Perret <qperret@google.com> Acked-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lkml.kernel.org/r/20201027180713.7642-2-ionela.voinescu@arm.com (cherry picked from commit 31f6a8c0) Conflicts: kernel/sched/cpufreq_schedutil.c BUG=b:249685960 TEST=Build Change-Id: I9230ce5b5978b3439d8246fc0c95959a635c3ef2 Signed-off-by:
Masami Hiramatsu <mhiramat@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3939333 Reviewed-by:
Suleiman Souhlal <suleiman@chromium.org>
Loading
Please sign in to comment