mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
Add a KASSERT() to assert that td_critnest is == 1 when mi_switch() is
called.
This commit is contained in:
parent
fe79953325
commit
627ed43ba7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100210
|
@ -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 a new issue