Commit 72f279b2 authored by Sheng Yang's avatar Sheng Yang Committed by Ingo Molnar

generic-ipi: Fix misleading smp_call_function*() description

After commit:8969a5ed
"generic-ipi: remove kmalloc()", wait = 0 can be guaranteed.
Signed-off-by: default avatarSheng Yang <sheng@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Nick Piggin <npiggin@suse.de>
LKML-Reference: <1256210374-25354-1-git-send-email-sheng@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 964fe080
...@@ -265,9 +265,7 @@ static DEFINE_PER_CPU(struct call_single_data, csd_data); ...@@ -265,9 +265,7 @@ static DEFINE_PER_CPU(struct call_single_data, csd_data);
* @info: An arbitrary pointer to pass to the function. * @info: An arbitrary pointer to pass to the function.
* @wait: If true, wait until function has completed on other CPUs. * @wait: If true, wait until function has completed on other CPUs.
* *
* Returns 0 on success, else a negative status code. Note that @wait * Returns 0 on success, else a negative status code.
* will be implicitly turned on in case of allocation failures, since
* we fall back to on-stack allocation.
*/ */
int smp_call_function_single(int cpu, void (*func) (void *info), void *info, int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
int wait) int wait)
...@@ -355,9 +353,7 @@ void __smp_call_function_single(int cpu, struct call_single_data *data, ...@@ -355,9 +353,7 @@ void __smp_call_function_single(int cpu, struct call_single_data *data,
* @wait: If true, wait (atomically) until function has completed * @wait: If true, wait (atomically) until function has completed
* on other CPUs. * on other CPUs.
* *
* If @wait is true, then returns once @func has returned. Note that @wait * If @wait is true, then returns once @func has returned.
* will be implicitly turned on in case of allocation failures, since
* we fall back to on-stack allocation.
* *
* You must not call this function with disabled interrupts or from a * You must not call this function with disabled interrupts or from a
* hardware interrupt handler or from a bottom half handler. Preemption * hardware interrupt handler or from a bottom half handler. Preemption
...@@ -443,8 +439,7 @@ EXPORT_SYMBOL(smp_call_function_many); ...@@ -443,8 +439,7 @@ EXPORT_SYMBOL(smp_call_function_many);
* Returns 0. * Returns 0.
* *
* If @wait is true, then returns once @func has returned; otherwise * If @wait is true, then returns once @func has returned; otherwise
* it returns just before the target cpu calls @func. In case of allocation * it returns just before the target cpu calls @func.
* failure, @wait will be implicitly turned on.
* *
* You must not call this function with disabled interrupts or from a * You must not call this function with disabled interrupts or from a
* hardware interrupt handler or from a bottom half handler. * hardware interrupt handler or from a bottom half handler.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment