sched: Document memory barriers implied by sleep/wake-up primitives
authorDavid Howells <dhowells@redhat.com>
Tue, 28 Apr 2009 14:01:38 +0000 (15:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:15:55 +0000 (14:15 +0200)
commit50fa610a3b6ba7cf91d7a92229177dfaff2b81a1
tree0369fc3269a18f8d2ffcedaebe4ac875bbe9870c
parent56a50adda49b2020156616c4eb15353e0f9ad7de
sched: Document memory barriers implied by sleep/wake-up primitives

Add a section to the memory barriers document to note the implied
memory barriers of sleep primitives (set_current_state() and wrappers)
and wake-up primitives (wake_up() and co.).

Also extend the in-code comments on the wake_up() functions to note
these implied barriers.

[ Impact: add documentation ]

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <20090428140138.1192.94723.stgit@warthog.procyon.org.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/memory-barriers.txt
kernel/sched.c