fix non SMP compile smp stubs
PATCH 1/1 fix non SMP compile smp stubs
Ingo,
Some compile errors in the smp stubs are fixed here:
I added the cpumask.h file so that it knows the cpumask_t type. I could have just converted it to a macro do { } while(0), but I like having the type check a NULL inline gives.
Signed-off-by Steven Rostedt <[email protected]>
include/linux/smp.h +2 -1
@@ -7,6 +7,7 @@*/ #include <linux/errno.h> +#include <linux/cpumask.h> extern void cpu_idle (void );
@@ -116,7 +117,7 @@ static inline int up_smp_call_function(v })static inline void smp_send_reschedule (int cpu) { }static inline void smp_send_reschedule_allbutself (void ) { } -static inline void smp_send_reschedule_allbutself_cpumask (cpumask_t ) { } +static inline void smp_send_reschedule_allbutself_cpumask (cpumask_t mask) { }#define num_booting_cpus () 1#define smp_prepare_boot_cpu () do {} while (0)#define smp_call_function_single (cpuid, func, info, retry, wait) \