提交 d479d2cc 编写于 作者: J Jeremy Fitzhardinge 提交者: Andi Kleen

[PATCH] i386: Update smp_call_function* comments

Update documentation for i386 smp_call_function* functions.

As reported by Randy Dunlap <rdunlap@xenotime.net>

[ I've posted this before but it seems to have been lost along the way. ]
Signed-off-by: NJeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: NAndi Kleen <ak@suse.de>
Cc: Randy Dunlap <rdunlap@xenotime.net>
上级 79463318
...@@ -554,8 +554,10 @@ static void __smp_call_function(void (*func) (void *info), void *info, ...@@ -554,8 +554,10 @@ static void __smp_call_function(void (*func) (void *info), void *info,
* @info: An arbitrary pointer to pass to the function. * @info: An arbitrary pointer to pass to the function.
* @wait: If true, wait (atomically) until function has completed on other CPUs. * @wait: If true, wait (atomically) until function has completed on other CPUs.
* *
* Returns 0 on success, else a negative status code. Does not return until * Returns 0 on success, else a negative status code.
* remote CPUs are nearly ready to execute <<func>> or are or have finished. *
* If @wait is true, then returns once @func has returned; otherwise
* it returns just before the target cpu calls @func.
* *
* 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.
...@@ -617,11 +619,13 @@ int native_smp_call_function_mask(cpumask_t mask, ...@@ -617,11 +619,13 @@ int native_smp_call_function_mask(cpumask_t mask,
* smp_call_function(): Run a function on all other CPUs. * smp_call_function(): Run a function on all other CPUs.
* @func: The function to run. This must be fast and non-blocking. * @func: The function to run. This must be fast and non-blocking.
* @info: An arbitrary pointer to pass to the function. * @info: An arbitrary pointer to pass to the function.
* @nonatomic: currently unused. * @nonatomic: Unused.
* @wait: If true, wait (atomically) until function has completed on other CPUs. * @wait: If true, wait (atomically) until function has completed on other CPUs.
* *
* Returns 0 on success, else a negative status code. Does not return until * Returns 0 on success, else a negative status code.
* remote CPUs are nearly ready to execute <<func>> or are or have executed. *
* If @wait is true, then returns once @func has returned; otherwise
* it returns just before the target cpu calls @func.
* *
* 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.
...@@ -633,17 +637,18 @@ int smp_call_function(void (*func) (void *info), void *info, int nonatomic, ...@@ -633,17 +637,18 @@ int smp_call_function(void (*func) (void *info), void *info, int nonatomic,
} }
EXPORT_SYMBOL(smp_call_function); EXPORT_SYMBOL(smp_call_function);
/* /**
* smp_call_function_single - Run a function on another CPU * smp_call_function_single - Run a function on another CPU
* @cpu: The target CPU. Cannot be the calling CPU.
* @func: The function to run. This must be fast and non-blocking. * @func: The function to run. This must be fast and non-blocking.
* @info: An arbitrary pointer to pass to the function. * @info: An arbitrary pointer to pass to the function.
* @nonatomic: Currently unused. * @nonatomic: Unused.
* @wait: If true, wait until function has completed on other CPUs. * @wait: If true, wait until function has completed on other CPUs.
* *
* Retrurns 0 on success, else a negative status code. * Returns 0 on success, else a negative status code.
* *
* Does not return until the remote CPU is nearly ready to execute <func> * If @wait is true, then returns once @func has returned; otherwise
* or is or has executed. * it returns just before the target cpu calls @func.
*/ */
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 nonatomic, int wait) int nonatomic, int wait)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册