diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
| commit | bcd6acd51f3d4d1ada201e9bc5c40a31d6d80c71 (patch) | |
| tree | 2f6dffd2d3e4dd67355a224de7e7a960335a92fd /include/linux/smp.h | |
| parent | 11c34c7deaeeebcee342cbc35e1bb2a6711b2431 (diff) | |
| parent | 3ff6a468b45b5dfeb0e903e56f4eb27d34b2437c (diff) | |
Merge commit 'origin/master' into next
Conflicts:
include/linux/kvm.h
Diffstat (limited to 'include/linux/smp.h')
| -rw-r--r-- | include/linux/smp.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 39c64bae776d..7a0570e6a596 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
| @@ -76,6 +76,9 @@ void smp_call_function_many(const struct cpumask *mask, | |||
| 76 | void __smp_call_function_single(int cpuid, struct call_single_data *data, | 76 | void __smp_call_function_single(int cpuid, struct call_single_data *data, |
| 77 | int wait); | 77 | int wait); |
| 78 | 78 | ||
| 79 | int smp_call_function_any(const struct cpumask *mask, | ||
| 80 | void (*func)(void *info), void *info, int wait); | ||
| 81 | |||
| 79 | /* | 82 | /* |
| 80 | * Generic and arch helpers | 83 | * Generic and arch helpers |
| 81 | */ | 84 | */ |
| @@ -137,9 +140,15 @@ static inline void smp_send_reschedule(int cpu) { } | |||
| 137 | #define smp_prepare_boot_cpu() do {} while (0) | 140 | #define smp_prepare_boot_cpu() do {} while (0) |
| 138 | #define smp_call_function_many(mask, func, info, wait) \ | 141 | #define smp_call_function_many(mask, func, info, wait) \ |
| 139 | (up_smp_call_function(func, info)) | 142 | (up_smp_call_function(func, info)) |
| 140 | static inline void init_call_single_data(void) | 143 | static inline void init_call_single_data(void) { } |
| 144 | |||
| 145 | static inline int | ||
| 146 | smp_call_function_any(const struct cpumask *mask, void (*func)(void *info), | ||
| 147 | void *info, int wait) | ||
| 141 | { | 148 | { |
| 149 | return smp_call_function_single(0, func, info, wait); | ||
| 142 | } | 150 | } |
| 151 | |||
| 143 | #endif /* !SMP */ | 152 | #endif /* !SMP */ |
| 144 | 153 | ||
| 145 | /* | 154 | /* |
