Re: [PATCH 78/89] sched/core: Remove the tsk_cpus_allowed() wrapper

Peter Zijlstra
2017-02-06T14:53:51Z

On Mon, Feb 06, 2017 at 02:29:21PM +0100, Ingo Molnar wrote:
> So the original intention of tsk_cpus_allowed() was to 'future-proof'
> the field - but it's pretty ineffectual at that, because half of
> the code uses ->cpus_allowed directly ...
>
> Also, the wrapper makes the code longer than the original expression!
>
> So just get rid of it. This also shrinks <linux/sched.h> a bit.

Please keep this and the tsk_nr_cpus_allowed() thing. RT uses them.