diff options
| author | Jan Kara <jack@suse.cz> | 2014-02-24 10:39:57 -0500 |
|---|---|---|
| committer | Jens Axboe <axboe@fb.com> | 2014-02-24 17:46:55 -0500 |
| commit | 08eed44c7249d381a099bc55577e55c6bb533160 (patch) | |
| tree | f4d2467cd82c40e10ec0e360398891632edf6a48 /include/linux | |
| parent | 0ebeb79ce920bed3a4a55113534951d95a444fbb (diff) | |
smp: Teach __smp_call_function_single() to check for offline cpus
Align __smp_call_function_single() with smp_call_function_single() so
that it also checks whether requested cpu is still online.
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/smp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 4991c6b12831..c39074c794c5 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
| @@ -50,8 +50,7 @@ void on_each_cpu_cond(bool (*cond_func)(int cpu, void *info), | |||
| 50 | smp_call_func_t func, void *info, bool wait, | 50 | smp_call_func_t func, void *info, bool wait, |
| 51 | gfp_t gfp_flags); | 51 | gfp_t gfp_flags); |
| 52 | 52 | ||
| 53 | void __smp_call_function_single(int cpuid, struct call_single_data *data, | 53 | int __smp_call_function_single(int cpu, struct call_single_data *csd, int wait); |
| 54 | int wait); | ||
| 55 | 54 | ||
| 56 | #ifdef CONFIG_SMP | 55 | #ifdef CONFIG_SMP |
| 57 | 56 | ||
