patch-2.1.97 linux/include/asm-sparc64/smp.h
Next file: linux/include/asm-sparc64/softirq.h
Previous file: linux/include/asm-sparc64/sbus.h
Back to the patch index
Back to the overall index
-  Lines: 34
-  Date:
Tue Apr 14 17:44:25 1998
-  Orig file: 
v2.1.96/linux/include/asm-sparc64/smp.h
-  Orig date: 
Sat Aug 16 09:51:10 1997
diff -u --recursive --new-file v2.1.96/linux/include/asm-sparc64/smp.h linux/include/asm-sparc64/smp.h
@@ -74,7 +74,12 @@
 extern void smp_store_cpu_info(int id);
 
 extern __volatile__ int cpu_number_map[NR_CPUS];
-extern __volatile__ int cpu_logical_map[NR_CPUS];
+extern __volatile__ int __cpu_logical_map[NR_CPUS];
+
+extern __inline__ int cpu_logical_map(int cpu)
+{
+	return __cpu_logical_map[cpu];
+}
 
 extern __inline__ int hard_smp_processor_id(void)
 {
@@ -88,10 +93,19 @@
 
 #define smp_processor_id() (current->processor)
 
+extern void smp_message_pass(int target, int msg, unsigned long data, int wait);
+
 #endif /* !(__ASSEMBLY__) */
 
 #define PROC_CHANGE_PENALTY	20
 
+#else /* !(__SMP__) */
+#ifndef __ASSEMBLY__ 
+extern __inline__ int cpu_logical_map(int cpu)
+{
+	return cpu;
+}
+#endif 
 #endif /* !(__SMP__) */
 
 #define NO_PROC_ID		0xFF
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov