diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index f4e5939b7958..2ede75484c62 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -244,6 +244,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) { @@ -258,6 +260,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 a07b510e7dc5..589f2a21a4af 100644 --- a/include/linux/arch_topology.h +++ b/include/linux/arch_topology.h @@ -93,5 +93,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_ */