Message ID | 1539102302-9057-5-git-send-email-thara.gopinath@linaro.org |
---|---|
State | New |
Headers | show |
Series | Introduce thermal pressure | expand |
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index e7cb0c6..542745f 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -126,6 +126,7 @@ void topology_normalize_cpu_scale(void) pr_debug("cpu_capacity: CPU%d cpu_capacity=%lu\n", cpu, topology_get_cpu_scale(NULL, cpu)); } + populate_max_capacity_info(); mutex_unlock(&cpu_scale_mutex); } diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 625bc98..f0eed1a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5868,6 +5868,8 @@ void __init sched_init_smp(void) init_sched_rt_class(); init_sched_dl_class(); + populate_max_capacity_info(); + sched_smp_initialized = true; }
Initialize per cpu max_capacity_info during scheduler init. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> --- drivers/base/arch_topology.c | 1 + kernel/sched/core.c | 2 ++ 2 files changed, 3 insertions(+) -- 2.1.4