No longer inlines spin_lock
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 15 Nov 2012 03:40:08 +0000 (19:40 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 21 Nov 2012 23:41:18 +0000 (15:41 -0800)
commitaa6315f7d0b76187fbb6fb4b0fd07b7e5de49e55
tree1ec36d5c0e75409308b631bcbefcad900dfce665
parent369210530361ea3124af42679ee1c05555f1b97e
No longer inlines spin_lock

Arch-specific locking is done in __spin_{lock,unlock,init}.  Debugging
and whatnot is all done in k/s/atomic.c.

Also adds irq_okay fields and different types of spinlock inits, based
on whether or not it is okay to use the lock in IRQ context or not.  We
don't enforce anything yet (wait for the next patch or three).
kern/arch/i686/atomic.h
kern/arch/i686/smp_boot.c
kern/arch/riscv/atomic.h
kern/arch/sparc/atomic.h
kern/include/atomic.h
kern/include/kthread.h
kern/src/atomic.c