diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 5342845743f2..f87f3b2ebd86 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -115,6 +115,8 @@ static int register_cpu_capacity_sysctl(void) subsys_initcall(register_cpu_capacity_sysctl); static int update_topology; +bool topology_update_done; +EXPORT_SYMBOL_GPL(topology_update_done); int topology_update_cpu_topology(void) { @@ -129,6 +131,7 @@ static void update_topology_flags_workfn(struct work_struct *work) { update_topology = 1; rebuild_sched_domains(); + topology_update_done = true; trace_android_vh_update_topology_flags_workfn(NULL); pr_debug("sched_domain hierarchy rebuilt, flags updated\n"); update_topology = 0; diff --git a/include/linux/arch_topology.h b/include/linux/arch_topology.h index 3f33dfe7f808..d76d95310c4b 100644 --- a/include/linux/arch_topology.h +++ b/include/linux/arch_topology.h @@ -75,5 +75,6 @@ void remove_cpu_topology(unsigned int cpuid); void reset_cpu_topology(void); int parse_acpi_topology(void); #endif +extern bool topology_update_done; #endif /* _LINUX_ARCH_TOPOLOGY_H_ */