All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc
@ 2025-09-09 11:44 Rafael J. Wysocki
  2025-09-16 14:13 ` Rafael J. Wysocki
  2025-09-18 20:25 ` [tip: smp/core] " tip-bot2 for Rafael J. Wysocki
  0 siblings, 2 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2025-09-09 11:44 UTC (permalink / raw)
  To: LKML
  Cc: Thomas Gleixner, Randy Dunlap, Linux PM, Greg Kroah-Hartman,
	Peter Zijlstra

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

The smp_call_function_many() kerneldoc comment got out of sync with the
function definition (bool parameter "wait" is incorrectly described as a
bitmask in it), so fix it up by copying the "wait" description from the
smp_call_function() kerneldoc and add information regarding the handling
of the local CPU to it.

Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 kernel/smp.c |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -884,16 +884,15 @@ static void smp_call_function_many_cond(
  * @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.
- *
- * If @wait is true, then returns once @func has returned.
+ * @wait: If true, wait (atomically) until function has completed
+ *        on other CPUs.
  *
  * You must not call this function with disabled interrupts or from a
  * hardware interrupt handler or from a bottom half handler. Preemption
  * must be disabled when calling this function.
+ *
+ * @func is not called on the local CPU even if @mask contains it.  Consider
+ * using on_each_cpu_cond_mask() instead if this is not desirable.
  */
 void smp_call_function_many(const struct cpumask *mask,
 			    smp_call_func_t func, void *info, bool wait)




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc
  2025-09-09 11:44 [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc Rafael J. Wysocki
@ 2025-09-16 14:13 ` Rafael J. Wysocki
  2025-09-18  8:31   ` Thomas Gleixner
  2025-09-18 20:25 ` [tip: smp/core] " tip-bot2 for Rafael J. Wysocki
  1 sibling, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2025-09-16 14:13 UTC (permalink / raw)
  To: LKML
  Cc: Thomas Gleixner, Randy Dunlap, Linux PM, Greg Kroah-Hartman,
	Peter Zijlstra

On Tue, Sep 9, 2025 at 1:44 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
>
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> The smp_call_function_many() kerneldoc comment got out of sync with the
> function definition (bool parameter "wait" is incorrectly described as a
> bitmask in it), so fix it up by copying the "wait" description from the
> smp_call_function() kerneldoc and add information regarding the handling
> of the local CPU to it.
>
> Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

It's been a week and no feedback.

Well, in the further absence of any, I'll assume no concerns and just
queue this up.

> ---
>  kernel/smp.c |   11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)
>
> --- a/kernel/smp.c
> +++ b/kernel/smp.c
> @@ -884,16 +884,15 @@ static void smp_call_function_many_cond(
>   * @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.
> - *
> - * If @wait is true, then returns once @func has returned.
> + * @wait: If true, wait (atomically) until function has completed
> + *        on other CPUs.
>   *
>   * You must not call this function with disabled interrupts or from a
>   * hardware interrupt handler or from a bottom half handler. Preemption
>   * must be disabled when calling this function.
> + *
> + * @func is not called on the local CPU even if @mask contains it.  Consider
> + * using on_each_cpu_cond_mask() instead if this is not desirable.
>   */
>  void smp_call_function_many(const struct cpumask *mask,
>                             smp_call_func_t func, void *info, bool wait)
>
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc
  2025-09-16 14:13 ` Rafael J. Wysocki
@ 2025-09-18  8:31   ` Thomas Gleixner
  2025-09-18 10:05     ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2025-09-18  8:31 UTC (permalink / raw)
  To: Rafael J. Wysocki, LKML
  Cc: Randy Dunlap, Linux PM, Greg Kroah-Hartman, Peter Zijlstra

On Tue, Sep 16 2025 at 16:13, Rafael J. Wysocki wrote:

> On Tue, Sep 9, 2025 at 1:44 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
>>
>> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>>
>> The smp_call_function_many() kerneldoc comment got out of sync with the
>> function definition (bool parameter "wait" is incorrectly described as a
>> bitmask in it), so fix it up by copying the "wait" description from the
>> smp_call_function() kerneldoc and add information regarding the handling
>> of the local CPU to it.
>>
>> Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
>> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> It's been a week and no feedback.
>
> Well, in the further absence of any, I'll assume no concerns and just
> queue this up.

Sorry, was distracted. No objections from my side. Did you queue it
already?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc
  2025-09-18  8:31   ` Thomas Gleixner
@ 2025-09-18 10:05     ` Rafael J. Wysocki
  2025-09-18 20:17       ` Thomas Gleixner
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2025-09-18 10:05 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Rafael J. Wysocki, LKML, Randy Dunlap, Linux PM,
	Greg Kroah-Hartman, Peter Zijlstra

On Thu, Sep 18, 2025 at 10:31 AM Thomas Gleixner <tglx@linutronix.de> wrote:
>
> On Tue, Sep 16 2025 at 16:13, Rafael J. Wysocki wrote:
>
> > On Tue, Sep 9, 2025 at 1:44 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
> >>
> >> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >>
> >> The smp_call_function_many() kerneldoc comment got out of sync with the
> >> function definition (bool parameter "wait" is incorrectly described as a
> >> bitmask in it), so fix it up by copying the "wait" description from the
> >> smp_call_function() kerneldoc and add information regarding the handling
> >> of the local CPU to it.
> >>
> >> Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
> >> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >
> > It's been a week and no feedback.
> >
> > Well, in the further absence of any, I'll assume no concerns and just
> > queue this up.
>
> Sorry, was distracted. No objections from my side. Did you queue it
> already?

No, I didn't.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc
  2025-09-18 10:05     ` Rafael J. Wysocki
@ 2025-09-18 20:17       ` Thomas Gleixner
  2025-09-18 20:19         ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2025-09-18 20:17 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Rafael J. Wysocki, LKML, Randy Dunlap, Linux PM,
	Greg Kroah-Hartman, Peter Zijlstra

On Thu, Sep 18 2025 at 12:05, Rafael J. Wysocki wrote:
> On Thu, Sep 18, 2025 at 10:31 AM Thomas Gleixner <tglx@linutronix.de> wrote:
>>
>> On Tue, Sep 16 2025 at 16:13, Rafael J. Wysocki wrote:
>>
>> > On Tue, Sep 9, 2025 at 1:44 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
>> >>
>> >> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>> >>
>> >> The smp_call_function_many() kerneldoc comment got out of sync with the
>> >> function definition (bool parameter "wait" is incorrectly described as a
>> >> bitmask in it), so fix it up by copying the "wait" description from the
>> >> smp_call_function() kerneldoc and add information regarding the handling
>> >> of the local CPU to it.
>> >>
>> >> Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
>> >> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>> >
>> > It's been a week and no feedback.
>> >
>> > Well, in the further absence of any, I'll assume no concerns and just
>> > queue this up.
>>
>> Sorry, was distracted. No objections from my side. Did you queue it
>> already?
>
> No, I didn't.

I pick it up

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc
  2025-09-18 20:17       ` Thomas Gleixner
@ 2025-09-18 20:19         ` Rafael J. Wysocki
  0 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2025-09-18 20:19 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Rafael J. Wysocki, LKML, Randy Dunlap, Linux PM,
	Greg Kroah-Hartman, Peter Zijlstra

On Thu, Sep 18, 2025 at 10:17 PM Thomas Gleixner <tglx@linutronix.de> wrote:
>
> On Thu, Sep 18 2025 at 12:05, Rafael J. Wysocki wrote:
> > On Thu, Sep 18, 2025 at 10:31 AM Thomas Gleixner <tglx@linutronix.de> wrote:
> >>
> >> On Tue, Sep 16 2025 at 16:13, Rafael J. Wysocki wrote:
> >>
> >> > On Tue, Sep 9, 2025 at 1:44 PM Rafael J. Wysocki <rafael@kernel.org> wrote:
> >> >>
> >> >> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >> >>
> >> >> The smp_call_function_many() kerneldoc comment got out of sync with the
> >> >> function definition (bool parameter "wait" is incorrectly described as a
> >> >> bitmask in it), so fix it up by copying the "wait" description from the
> >> >> smp_call_function() kerneldoc and add information regarding the handling
> >> >> of the local CPU to it.
> >> >>
> >> >> Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
> >> >> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >> >
> >> > It's been a week and no feedback.
> >> >
> >> > Well, in the further absence of any, I'll assume no concerns and just
> >> > queue this up.
> >>
> >> Sorry, was distracted. No objections from my side. Did you queue it
> >> already?
> >
> > No, I didn't.
>
> I pick it up

Thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [tip: smp/core] smp: Fix up and expand the smp_call_function_many() kerneldoc
  2025-09-09 11:44 [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc Rafael J. Wysocki
  2025-09-16 14:13 ` Rafael J. Wysocki
@ 2025-09-18 20:25 ` tip-bot2 for Rafael J. Wysocki
  1 sibling, 0 replies; 7+ messages in thread
From: tip-bot2 for Rafael J. Wysocki @ 2025-09-18 20:25 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Rafael J. Wysocki, Thomas Gleixner, x86, linux-kernel

The following commit has been merged into the smp/core branch of tip:

Commit-ID:     ccf09357ffef2ab472369ab9cdf470c9bc9b821a
Gitweb:        https://git.kernel.org/tip/ccf09357ffef2ab472369ab9cdf470c9bc9b821a
Author:        Rafael J. Wysocki <rafael.j.wysocki@intel.com>
AuthorDate:    Tue, 09 Sep 2025 13:44:14 +02:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Thu, 18 Sep 2025 22:21:28 +02:00

smp: Fix up and expand the smp_call_function_many() kerneldoc

The smp_call_function_many() kerneldoc comment got out of sync with the
function definition (bool parameter "wait" is incorrectly described as a
bitmask in it), so fix it up by copying the "wait" description from the
smp_call_function() kerneldoc and add information regarding the handling
of the local CPU to it.

Fixes: 49b3bd213a9f ("smp: Fix all kernel-doc warnings")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/smp.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/kernel/smp.c b/kernel/smp.c
index 56f83aa..02f5229 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -884,16 +884,15 @@ 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.
- *
- * If @wait is true, then returns once @func has returned.
+ * @wait: If true, wait (atomically) until function has completed
+ *        on other CPUs.
  *
  * You must not call this function with disabled interrupts or from a
  * hardware interrupt handler or from a bottom half handler. Preemption
  * must be disabled when calling this function.
+ *
+ * @func is not called on the local CPU even if @mask contains it.  Consider
+ * using on_each_cpu_cond_mask() instead if this is not desirable.
  */
 void smp_call_function_many(const struct cpumask *mask,
 			    smp_call_func_t func, void *info, bool wait)

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-18 20:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-09 11:44 [PATCH v1] smp: Fix up and expand the smp_call_function_many() kerneldoc Rafael J. Wysocki
2025-09-16 14:13 ` Rafael J. Wysocki
2025-09-18  8:31   ` Thomas Gleixner
2025-09-18 10:05     ` Rafael J. Wysocki
2025-09-18 20:17       ` Thomas Gleixner
2025-09-18 20:19         ` Rafael J. Wysocki
2025-09-18 20:25 ` [tip: smp/core] " tip-bot2 for Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.