sched/core: Better document the try_to_wake_up() barriers
authorPeter Zijlstra <peterz@infradead.org>
Tue, 6 Oct 2015 12:36:17 +0000 (14:36 +0200)
committerIngo Molnar <mingo@kernel.org>
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) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/sched.h