sched: Do not stop cpu in set_cpus_allowed_ptr() if task is not running
authorKirill Tkhai <ktkhai@parallels.com>
Fri, 12 Sep 2014 11:03:34 +0000 (15:03 +0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Sep 2014 10:35:21 +0000 (12:35 +0200)
commita15b12ac36ad4e7b856a4ae54937ae26a51aebad
tree78a87ec22776757a000e214313b78fabe3b6fbb6
parent1ba93d42727c44001aa8ccffd39c8ab5705379e2
sched: Do not stop cpu in set_cpus_allowed_ptr() if task is not running

If a task is queued but not running on it rq, we can simply migrate
it without migration thread and switching of context.

Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1410519814.3569.7.camel@tkhai
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c