kernel - Fix issue revealed by new yield code master
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Sep 2013 09:08:18 +0000 (02:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Sep 2013 09:08:18 +0000 (02:08 -0700)
commit721d1b44912f0e82ee8f8e104e43b5f321268de2
tree5f7936ba18898e5163abb7c90180be25b2f7f309
parent8cee56f46a3ba3b169e5c0b4716c457bc9d03164
kernel - Fix issue revealed by new yield code

* Make sure the current lwp is released from the scheduler in all cases.
  There were a few race cases where it would not be released.

* Reorder the yield code a little.
sys/kern/kern_exit.c
sys/kern/usched_dfly.c