sched/deadline: Don't balance during wakeup if wakee is pinned
authorWanpeng Li <wanpeng.li@linux.intel.com>
Tue, 14 Oct 2014 02:22:40 +0000 (10:22 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Oct 2014 09:48:02 +0000 (10:48 +0100)
commitf4e9d94a5bf60193d45f92b136e3d166be3ec8d5
treecc5b69ef98a81450aff3d548b155b293b047ca30
parent1d7e974cbf2fce2683f34ff33c173fd7ef5478c7
sched/deadline: Don't balance during wakeup if wakee is pinned

Use nr_cpus_allowed to bail from select_task_rq() when only one cpu
can be used, and saves some cycles for pinned tasks.

Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1413253360-5318-2-git-send-email-wanpeng.li@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/deadline.c