1 #ifndef __LINUX_SMP_H
2 #define __LINUX_SMP_H
3
4
5
6
7
8
9 #include <asm/smp.h>
10
11
12 extern void smp_message_pass(int target, int msg, unsigned long data, int wait);
13 extern void smp_boot_cpus(void);
14 extern void smp_callin(void);
15 extern void smp_commence(void);
16 extern int smp_num_cpus;
17 extern int smp_threads_ready;
18 extern volatile unsigned long smp_spins;
19
20 extern volatile unsigned long smp_msg_data;
21 extern volatile int smp_src_cpu;
22 extern volatile int smp_msg_id;
23
24 #define MSG_ALL_BUT_SELF 0x8000
25 #define MSG_ALL 0x8001
26
27 #define MSG_INVALIDATE_TLB 0x0001
28 #define MSG_STOP_CPU 0x0002
29 #define MSG_RESCHEDULE 0x0003
30
31 #endif