]> git.baikalelectronics.ru Git - kernel.git/commit
sched/topology,schedutil: Wrap sched domains rebuild
authorIonela Voinescu <ionela.voinescu@arm.com>
Tue, 27 Oct 2020 18:07:11 +0000 (18:07 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 19 Nov 2020 10:25:47 +0000 (11:25 +0100)
commit0a51f1b2669b96ff1e61b8d310717caf6b20a9d4
tree75904defe592809ef90aa67fcf0558f9c8205524
parentb4d197b9769b333f5d1b58a2d9f05c49e7e86a9f
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
include/linux/sched/topology.h
kernel/sched/cpufreq_schedutil.c
kernel/sched/topology.c