Add a KASSERT() to assert that td_critnest is == 1 when mi_switch() is
called.
This commit is contained in:
parent
fe79953325
commit
627ed43ba7
@ -796,6 +796,8 @@ mi_switch()
|
||||
td->td_state != TDS_RUNNING)
|
||||
mtx_assert(&Giant, MA_NOTOWNED);
|
||||
#endif
|
||||
KASSERT(td->td_critnest == 1,
|
||||
("mi_switch: switch in a critical section"));
|
||||
|
||||
/*
|
||||
* Compute the amount of time during which the current
|
||||
|
Loading…
Reference in New Issue
Block a user