summaryrefslogtreecommitdiff
path: root/include/linux/arch_topology.h
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2019-06-27 22:52:59 +0300
committerPaul Walmsley <paul.walmsley@sifive.com>2019-07-22 19:36:18 +0300
commitca74b316df96d7c40ee3e8301065607c11c60c27 (patch)
treeaa844dce33617488ae8d2699856fa1a90f1854c4 /include/linux/arch_topology.h
parent60c1b220d8bc6baeaf837cd60f94a331b25c26bc (diff)
downloadlinux-ca74b316df96d7c40ee3e8301065607c11c60c27.tar.xz
arm: Use common cpu_topology structure and functions.
Currently, ARM32 and ARM64 uses different data structures to represent their cpu topologies. Since, we are moving the ARM64 topology to common code to be used by other architectures, we can reuse that for ARM32 as well. Take this opprtunity to remove the redundant functions from ARM32 and reuse the common code instead. To: Russell King <linux@armlinux.org.uk> Signed-off-by: Atish Patra <atish.patra@wdc.com> Tested-by: Sudeep Holla <sudeep.holla@arm.com> (on TC2) Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'include/linux/arch_topology.h')
-rw-r--r--include/linux/arch_topology.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/arch_topology.h b/include/linux/arch_topology.h
index ede0ce4623b4..42f2b5126094 100644
--- a/include/linux/arch_topology.h
+++ b/include/linux/arch_topology.h
@@ -54,11 +54,9 @@ extern struct cpu_topology cpu_topology[NR_CPUS];
void init_cpu_topology(void);
void store_cpu_topology(unsigned int cpuid);
const struct cpumask *cpu_coregroup_mask(int cpu);
-#endif
-
-#if defined(CONFIG_ARM64) || defined(CONFIG_RISCV)
void update_siblings_masks(unsigned int cpu);
-#endif
void remove_cpu_topology(unsigned int cpuid);
+void reset_cpu_topology(void);
+#endif
#endif /* _LINUX_ARCH_TOPOLOGY_H_ */