Message ID | 1571014705-19646-4-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 1eb81f11..7ac9f2f 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -123,6 +123,7 @@ void topology_normalize_cpu_scale(void) pr_debug("cpu_capacity: CPU%d cpu_capacity=%lu\n", cpu, topology_get_cpu_scale(cpu)); } + populate_max_capacity_info(); } bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7880f4f..744f026 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6534,6 +6534,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