• Nick Piggin's avatar
    [PATCH] sched: cleanup context switch locking · 4866cde0
    Nick Piggin authored
    Instead of requiring architecture code to interact with the scheduler's
    locking implementation, provide a couple of defines that can be used by the
    architecture to request runqueue unlocked context switches, and ask for
    interrupts to be enabled over the context switch.
    
    Also replaces the "switch_lock" used by these architectures with an oncpu
    flag (note, not a potentially slow bitflag).  This eliminates one bus
    locked memory operation when context switching, and simplifies the
    task_running function.
    Signed-off-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    4866cde0
system.h 7.35 KB