aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-06-10 10:46:31 +0200
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:56:35 +0100
commit0f6c4158fe6d4e01833ac9711f837a278ec77516 (patch)
tree56788eacdf0bba63cefbe4c3fa52e1c8e4a0a870 /arch
parentf0719efec305014dd13bb02d65afff7b32a4dda1 (diff)
downloadtip-0f6c4158fe6d4e01833ac9711f837a278ec77516.tar.gz
headers/deps: sched/topology, x86: Prepare <asm/topology.h>
Prepare for <linux/topology.h> to reduce dependencies as well, in particular add in the cpu_sibling_map definition it will need. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/topology.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index e21fcb928320f2..e9cdf75ccfb2c4 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -28,11 +28,13 @@
#include <linux/numa_types.h>
#include <linux/cache.h>
-#ifdef CONFIG_NUMA
#include <linux/cpumask_types.h>
+#include <linux/irqflags.h>
+#include <linux/percpu.h>
+DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
+#ifdef CONFIG_NUMA
#include <asm/mpspec.h>
-#include <asm/percpu.h>
/* Mappings between logical cpu number and node number */
DECLARE_EARLY_PER_CPU(int, x86_cpu_to_node_map);