sched/core: Better document the try_to_wake_up() barriers
authorPeter Zijlstra <[email protected]>
Tue, 6 Oct 2015 12:36:17 +0000 (14:36 +0200)
committerIngo Molnar <[email protected]>
Fri, 4 Dec 2015 09:26:42 +0000 (10:26 +0100)
commitb75a22531588e77aa8c2daf228c9723916ae2cd0
tree410014f762b59ea5dd46e4f58b1f1a4728a01c4a
parent2541117b0cf79977fa11a0d6e17d61010677bd7b
sched/core: Better document the try_to_wake_up() barriers

Explain how the control dependency and smp_rmb() end up providing
ACQUIRE semantics and pair with smp_store_release() in
finish_lock_switch().

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/core.c
kernel/sched/sched.h