From: Quentin Perret Date: Thu, 26 Apr 2018 13:58:51 +0000 (+0100) Subject: OPTIONAL: arch_topology: Start Energy Aware Scheduling X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5da658b98429f210c752012f1811b07668d7322a;p=platform%2Fkernel%2Flinux-exynos.git OPTIONAL: arch_topology: Start Energy Aware Scheduling Energy Aware Scheduling (EAS) starts when the scheduling domains are built if the Energy Model (EM) is present. However, in the typical case of Arm/Arm64 systems, the EM is provided after the scheduling domains are first built at boot time, which results in EAS staying disabled. Fix this issue by re-building the scheduling domain from the arch topology driver, once CPUfreq is up and running and the asymmetry in CPU capacities has been detected. Cc: Greg Kroah-Hartman Signed-off-by: Quentin Perret --- diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index edfcf8d982e4..c2159ecf72e9 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -273,6 +274,7 @@ static void parsing_done_workfn(struct work_struct *work) cpufreq_unregister_notifier(&init_cpu_capacity_notifier, CPUFREQ_POLICY_NOTIFIER); free_cpumask_var(cpus_to_visit); + rebuild_sched_domains(); } #else