patch-2.3.45 linux/include/asm-ia64/smp.h

Next file: linux/include/asm-ia64/softirq.h
Previous file: linux/include/asm-ia64/semaphore.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/include/asm-ia64/smp.h linux/include/asm-ia64/smp.h
@@ -8,6 +8,7 @@
 #define _ASM_IA64_SMP_H
 
 #include <linux/config.h>
+
 #include <linux/init.h>
 #include <linux/threads.h>
 #include <linux/kernel.h>
@@ -25,9 +26,10 @@
 extern unsigned long cpu_online_map;
 extern unsigned long ipi_base_addr;
 extern int bootstrap_processor;
-extern volatile int cpu_number_map[NR_CPUS];
+extern volatile int __cpu_number_map[NR_CPUS];
 extern volatile int __cpu_logical_map[NR_CPUS];
 
+#define cpu_number_map(i)	__cpu_number_map[i]
 #define cpu_logical_map(i)	__cpu_logical_map[i]
 
 #if defined(CONFIG_KDB)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)