diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-06 17:04:26 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-02-10 09:05:42 +0100 |
commit | bb3bac2ca9a3a5b7fa601781adf70167a0449d75 (patch) | |
tree | 9484f2817c8556b07e27bcac45eb53549fed8a2f /arch/x86/kernel/smpboot.c | |
parent | sched/autogroup: Rename auto_group.[ch] to autogroup.[ch] (diff) | |
download | linux-bb3bac2ca9a3a5b7fa601781adf70167a0449d75.tar.xz linux-bb3bac2ca9a3a5b7fa601781adf70167a0449d75.zip |
sched/core: Remove unlikely() annotation from sched_move_task()
The check for 'running' in sched_move_task() has an unlikely() around it. That
is, it is unlikely that the task being moved is running. That use to be
true. But with a couple of recent updates, it is now likely that the task
will be running.
The first change came from ea86cb4b7621 ("sched/cgroup: Fix
cpu_cgroup_fork() handling") that moved around the use case of
sched_move_task() in do_fork() where the call is now done after the task is
woken (hence it is running).
The second change came from 8e5bfa8c1f84 ("sched/autogroup: Do not use
autogroup->tg in zombie threads") where sched_move_task() is called by the
exit path, by the task that is exiting. Hence it too is running.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Link: http://lkml.kernel.org/r/20170206110426.27ca6426@gandalf.local.home
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
0 files changed, 0 insertions, 0 deletions