aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/topology.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/topology.h')
-rw-r--r--include/asm-x86/topology.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-x86/topology.h b/include/asm-x86/topology.h
index 040374f030cf..f1e12329078e 100644
--- a/include/asm-x86/topology.h
+++ b/include/asm-x86/topology.h
@@ -66,6 +66,13 @@ static inline int early_cpu_to_node(int cpu)
66 66
67static inline int cpu_to_node(int cpu) 67static inline int cpu_to_node(int cpu)
68{ 68{
69#ifdef CONFIG_DEBUG_PER_CPU_MAPS
70 if(x86_cpu_to_node_map_early_ptr) {
71 printk("KERN_NOTICE cpu_to_node(%d): usage too early!\n",
72 (int)cpu);
73 BUG();
74 }
75#endif
69 if(per_cpu_offset(cpu)) 76 if(per_cpu_offset(cpu))
70 return per_cpu(x86_cpu_to_node_map, cpu); 77 return per_cpu(x86_cpu_to_node_map, cpu);
71 else 78 else