Don't touch the waiter after waking
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 3 Jun 2011 18:57:54 +0000 (11:57 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:04 +0000 (17:36 -0700)
commita3db07256c369f3504e90e3a88e3a1a89ca06d0d
tree147ded7969596ea2504f6caacce0a2f433c5026b
parent38155e2994d813f490391241d2ec22ed4e66f118
Don't touch the waiter after waking

If the kthread runs on another core, it'll unwind its stack and
dealloc/clobber the waiter you just woke up.  Like many other places in
the code, once you wake / unlock / unblock something, don't touch it
again.
kern/src/alarm.c