[PATCH 30/33] kthread: Add API to update preferred affinity on kthread runtime
Frederic Weisbecker
frederic at kernel.org
Wed Nov 5 09:26:37 PST 2025
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
More information about the linux-arm-kernel
mailing list