]> git.baikalelectronics.ru Git - kernel.git/commit
sched: refactor try_to_wake_up()
authorTejun Heo <tj@kernel.org>
Thu, 3 Dec 2009 06:08:03 +0000 (15:08 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 8 Jun 2010 19:40:36 +0000 (21:40 +0200)
commit127a283d88ec0b1a05afdf9ceb597a661aaab874
tree6a1e92b3e51978c7e32f1afdf98b1966a3d65818
parent38c20237fbb11a1423e31293f2e2b3253cd26f5f
sched: refactor try_to_wake_up()

Factor ttwu_activate() and ttwu_woken_up() out of try_to_wake_up().
The factoring out doesn't affect try_to_wake_up() much
code-generation-wise.  Depending on configuration options, it ends up
generating the same object code as before or slightly different one
due to different register assignment.

This is to help future implementation of try_to_wake_up_local().

Mike Galbraith suggested rename to ttwu_post_activation() from
ttwu_woken_up() and comment update in try_to_wake_up().

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Ingo Molnar <mingo@elte.hu>
kernel/sched.c