[1/1] kernel/smp: Fix comments for smp_call_function{,_many}()

Message ID 20230504072051.80480-1-qiuxu.zhuo@intel.com
State New
Headers
Series [1/1] kernel/smp: Fix comments for smp_call_function{,_many}() |

Commit Message

Qiuxu Zhuo May 4, 2023, 7:20 a.m. UTC
  The parameter 'wait' of smp_call_function_many() is a bool, not a
bitmask. smp_call_function() has no return value. Fix their function
comments respectively.

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
---
 kernel/smp.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
  

Patch

diff --git a/kernel/smp.c b/kernel/smp.c
index 06a413987a14..ee4f3439b7d5 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -994,10 +994,8 @@  static void smp_call_function_many_cond(const struct cpumask *mask,
  * @mask: The set of cpus to run on (only runs on online subset).
  * @func: The function to run. This must be fast and non-blocking.
  * @info: An arbitrary pointer to pass to the function.
- * @wait: Bitmask that controls the operation. If %SCF_WAIT is set, wait
- *        (atomically) until function has completed on other CPUs. If
- *        %SCF_RUN_LOCAL is set, the function will also be run locally
- *        if the local CPU is set in the @cpumask.
+ * @wait: If true, wait (atomically) until function has completed
+ *        on other CPUs.
  *
  * If @wait is true, then returns once @func has returned.
  *
@@ -1019,8 +1017,6 @@  EXPORT_SYMBOL(smp_call_function_many);
  * @wait: If true, wait (atomically) until function has completed
  *        on other CPUs.
  *
- * Returns 0.
- *
  * If @wait is true, then returns once @func has returned; otherwise
  * it returns just before the target cpu calls @func.
  *