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)
commit9ed3811a6c0d6b66e6cd47a5d7b9136386dce743
tree6a1e92b3e51978c7e32f1afdf98b1966a3d65818
parent3a101d0548e925ab16ca6aaa8cf4f767d322ddb0
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