diff options
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r-- | include/linux/smp.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 74243c86ba39..8cc38d3bab0c 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
@@ -85,12 +85,15 @@ int smp_call_function_any(const struct cpumask *mask, | |||
85 | * Generic and arch helpers | 85 | * Generic and arch helpers |
86 | */ | 86 | */ |
87 | #ifdef CONFIG_USE_GENERIC_SMP_HELPERS | 87 | #ifdef CONFIG_USE_GENERIC_SMP_HELPERS |
88 | void __init call_function_init(void); | ||
88 | void generic_smp_call_function_single_interrupt(void); | 89 | void generic_smp_call_function_single_interrupt(void); |
89 | void generic_smp_call_function_interrupt(void); | 90 | void generic_smp_call_function_interrupt(void); |
90 | void ipi_call_lock(void); | 91 | void ipi_call_lock(void); |
91 | void ipi_call_unlock(void); | 92 | void ipi_call_unlock(void); |
92 | void ipi_call_lock_irq(void); | 93 | void ipi_call_lock_irq(void); |
93 | void ipi_call_unlock_irq(void); | 94 | void ipi_call_unlock_irq(void); |
95 | #else | ||
96 | static inline void call_function_init(void) { } | ||
94 | #endif | 97 | #endif |
95 | 98 | ||
96 | /* | 99 | /* |
@@ -98,16 +101,6 @@ void ipi_call_unlock_irq(void); | |||
98 | */ | 101 | */ |
99 | int on_each_cpu(smp_call_func_t func, void *info, int wait); | 102 | int on_each_cpu(smp_call_func_t func, void *info, int wait); |
100 | 103 | ||
101 | #define MSG_ALL_BUT_SELF 0x8000 /* Assume <32768 CPU's */ | ||
102 | #define MSG_ALL 0x8001 | ||
103 | |||
104 | #define MSG_INVALIDATE_TLB 0x0001 /* Remote processor TLB invalidate */ | ||
105 | #define MSG_STOP_CPU 0x0002 /* Sent to shut down slave CPU's | ||
106 | * when rebooting | ||
107 | */ | ||
108 | #define MSG_RESCHEDULE 0x0003 /* Reschedule request from master CPU*/ | ||
109 | #define MSG_CALL_FUNCTION 0x0004 /* Call function on all other CPUs */ | ||
110 | |||
111 | /* | 104 | /* |
112 | * Mark the boot cpu "online" so that it can call console drivers in | 105 | * Mark the boot cpu "online" so that it can call console drivers in |
113 | * printk() and can access its per-cpu storage. | 106 | * printk() and can access its per-cpu storage. |
@@ -144,7 +137,7 @@ static inline void smp_send_reschedule(int cpu) { } | |||
144 | #define smp_prepare_boot_cpu() do {} while (0) | 137 | #define smp_prepare_boot_cpu() do {} while (0) |
145 | #define smp_call_function_many(mask, func, info, wait) \ | 138 | #define smp_call_function_many(mask, func, info, wait) \ |
146 | (up_smp_call_function(func, info)) | 139 | (up_smp_call_function(func, info)) |
147 | static inline void init_call_single_data(void) { } | 140 | static inline void call_function_init(void) { } |
148 | 141 | ||
149 | static inline int | 142 | static inline int |
150 | smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, | 143 | smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, |