patch-2.1.37 linux/include/asm-sparc/smp.h

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

diff -u --recursive --new-file v2.1.36/linux/include/asm-sparc/smp.h linux/include/asm-sparc/smp.h
@@ -85,7 +85,7 @@
 extern __volatile__ int cpu_logical_map[NR_CPUS];
 extern unsigned long smp_proc_in_lock[NR_CPUS];
 
-extern __inline__ int smp_processor_id(void)
+extern __inline__ int hard_smp_processor_id(void)
 {
 	int cpuid;
 
@@ -95,6 +95,8 @@
 			     "=&r" (cpuid));
 	return cpuid;
 }
+
+#define smp_processor_id() hard_smp_processor_id()
 
 #endif /* !(__ASSEMBLY__) */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov