Commit 4af2f7d9 authored by Ionela Voinescu's avatar Ionela Voinescu Committed by Chromeos LUCI
Browse files

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: default avatarIonela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarQuentin Perret <qperret@google.com>
Acked-by: default avatarRafael 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: default avatarMasami Hiramatsu <mhiramat@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3939333


Reviewed-by: default avatarSuleiman Souhlal <suleiman@chromium.org>
parent 487152c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment