[PATCH] sched: cleanup context switch locking
authorNick Piggin <nickpiggin@yahoo.com.au>
Sat, 25 Jun 2005 21:57:23 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:43 +0000 (16:24 -0700)
commit4866cde064afbb6c2a488c265e696879de616daa
tree6effad1ab6271129fc607b98273086409876563a
parent48c08d3f8ff94fa118187e4d8d4a5707bb85e59d
[PATCH] sched: cleanup context switch locking

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: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-arm/system.h
include/asm-ia64/system.h
include/asm-mips/system.h
include/asm-s390/system.h
include/asm-sparc/system.h
include/asm-sparc64/system.h
include/linux/init_task.h
include/linux/sched.h
kernel/sched.c