sched: Make sched_class::set_cpus_allowed() unconditional
authorPeter Zijlstra <peterz@infradead.org>
Fri, 15 May 2015 15:43:35 +0000 (17:43 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 Aug 2015 10:06:09 +0000 (12:06 +0200)
commitc5b2803840817115e9b568d5054e5007ae36176b
treecf95c50a52bf6e99c9c7eaff63534b535d7ba0c2
parent25834c73f93af7f0712c98ca4593691592e6b360
sched: Make sched_class::set_cpus_allowed() unconditional

Give every class a set_cpus_allowed() method, this enables some small
optimization in the RT,DL implementation by avoiding a double
cpumask_weight() call.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: 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: dedekind1@gmail.com
Cc: juri.lelli@arm.com
Cc: mgorman@suse.de
Cc: riel@redhat.com
Cc: rostedt@goodmis.org
Link: http://lkml.kernel.org/r/20150515154833.614517487@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/idle_task.c
kernel/sched/rt.c
kernel/sched/sched.h
kernel/sched/stop_task.c