patch-2.2.8 linux/include/linux/smp.h
Next file: linux/include/linux/videodev.h
Previous file: linux/include/linux/sched.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Tue May 11 10:35:44 1999
- Orig file:
v2.2.7/linux/include/linux/smp.h
- Orig date:
Mon Dec 28 15:00:53 1998
diff -u --recursive --new-file v2.2.7/linux/include/linux/smp.h linux/include/linux/smp.h
@@ -42,6 +42,12 @@
extern void smp_commence(void);
/*
+ * Call a function on all other processors
+ */
+extern int smp_call_function (void (*func) (void *info), void *info,
+ int retry, int wait);
+
+/*
* True once the per process idle is forked
*/
extern int smp_threads_ready;
@@ -60,7 +66,7 @@
* when rebooting
*/
#define MSG_RESCHEDULE 0x0003 /* Reschedule request from master CPU*/
-#define MSG_MTRR_CHANGE 0x0004 /* Change MTRR */
+#define MSG_CALL_FUNCTION 0x0004 /* Call function on all other CPUs */
#else
@@ -68,12 +74,13 @@
* These macros fold the SMP functionality into a single CPU system
*/
-#define smp_num_cpus 1
-#define smp_processor_id() 0
-#define hard_smp_processor_id() 0
-#define smp_threads_ready 1
+#define smp_num_cpus 1
+#define smp_processor_id() 0
+#define hard_smp_processor_id() 0
+#define smp_threads_ready 1
#define kernel_lock()
-#define cpu_logical_map(cpu) 0
+#define cpu_logical_map(cpu) 0
+#define smp_call_function(func,info,retry,wait)
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)