• David Howells's avatar
    sched: Document memory barriers implied by sleep/wake-up primitives · 50fa610a
    David Howells authored
    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: default avatarDavid 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: default avatarIngo Molnar <mingo@elte.hu>
    50fa610a
sched.c 251 KB