Remove TD_ON_RUNQ() from a check to make sure Giant is not held when

calling mi_switch().  The kernel would panic on an earlier KASSERT() in
mi_switch() if TD_ON_RUNQ() was true.
This commit is contained in:
John Baldwin 2003-05-05 21:12:36 +00:00
parent 710c5645af
commit e668d8d834
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114750

View file

@ -467,9 +467,7 @@ mi_switch(void)
p = td->td_proc; /* XXX */
KASSERT(!TD_ON_RUNQ(td), ("mi_switch: called by old code"));
#ifdef INVARIANTS
if (!TD_ON_LOCK(td) &&
!TD_ON_RUNQ(td) &&
!TD_IS_RUNNING(td))
if (!TD_ON_LOCK(td) && !TD_IS_RUNNING(td))
mtx_assert(&Giant, MA_NOTOWNED);
#endif
KASSERT(td->td_critnest == 1,