]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Fix the case where we're not preempting but there is already a newtd
authorJeff Roberson <jeff@FreeBSD.org>
Tue, 7 Jun 2005 02:59:16 +0000 (02:59 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Tue, 7 Jun 2005 02:59:16 +0000 (02:59 +0000)
commit6680bbd5291a864dcf0bc675c62b2cea9e5fb5ca
tree1dd9954a1f01b17006aee945105413df9bd4310d
parent0f2e86fb2a08d69b91190dba14ac5e1601421c08
 - Fix the case where we're not preempting but there is already a newtd
   as this happens via thread_switchout().  I don't particularly like the
   structure of the code here.  We twice call out to thread code when
   a thread is voluntarily switching.  Once to thread_switchout() and once
   to slot_fill(), while sched_4BSD does even more work which is redundant
   to select another thread to use our remaining slice.  This should be
   simplified in the future, but for now I'm only going to fix the bug not
   the bad design.
sys/kern/sched_ule.c