Re: [PATCH 30/33] kthread: Add API to update preferred affinity on kthread runtime

From: Frederic Weisbecker

Date: Wed Nov 05 2025 - 12:26:40 EST


Le Tue, Oct 14, 2025 at 01:35:43PM +0100, Simon Horman a écrit :
> On Mon, Oct 13, 2025 at 10:31:43PM +0200, Frederic Weisbecker wrote:
>
> ...
>
> > @@ -900,6 +899,46 @@ int kthread_affine_preferred(struct task_struct *p, const struct cpumask *mask)
> > }
> > EXPORT_SYMBOL_GPL(kthread_affine_preferred);
> >
> > +/**
> > + * kthread_affine_preferred_update - update a kthread's preferred affinity
> > + * @p: thread created by kthread_create().
> > + * @cpumask: new mask of CPUs (might not be online, must be possible) for @k
> > + * to run on.
>
> nit: @mask: ...

Thanks! I'm dropping the current patch anyway but...

>
> Likewise for the documentation of kthread_affine_preferred()
> in a subsequent patch in this series.

...fixing it to that patch.

--
Frederic Weisbecker
SUSE Labs