sched/core: Remove the tsk_cpus_allowed() wrapper
authorIngo Molnar <mingo@kernel.org>
Sun, 5 Feb 2017 14:38:10 +0000 (15:38 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:24 +0000 (08:42 +0100)
commit0c98d344fe5c27f6e4bce42ac503e9e9a51c7d1d
tree98a45a561f3cfe6a1be9942cfdf23af5f70ca7dd
parent59ddbcb2f45b958cf1f11f122b666cbcf50cd57b
sched/core: Remove the tsk_cpus_allowed() wrapper

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.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
16 files changed:
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/sparc/kernel/sysfs.c
drivers/cpufreq/sparc-us2e-cpufreq.c
drivers/cpufreq/sparc-us3-cpufreq.c
drivers/infiniband/hw/hfi1/affinity.c
drivers/infiniband/hw/hfi1/sdma.c
include/linux/sched.h
kernel/sched/core.c
kernel/sched/cpudeadline.c
kernel/sched/cpupri.c
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/rt.c
lib/smp_processor_id.c
samples/trace_events/trace-events-sample.c