summaryrefslogtreecommitdiffstats
path: root/include/linux/smp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r--include/linux/smp.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 80ea3056f..75c34e87f 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -42,6 +42,12 @@ extern void smp_callin(void);
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 @@ extern volatile int smp_msg_id;
* 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 @@ extern volatile int smp_msg_id;
* 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