On 2017-06-29 11:56:59 [+0200], Bernhard Landauer wrote: > > You should only need a read copy and ->cpus_ptr is for that. > ntoskernel.h has this: > > #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) > > so should it become: > > #define tsk_cpus_allowed(tsk) ((tsk)->cpus_ptr) > > ?
That is the obvious thing to do (and I hope it uses it read-only).