Prefer a more traditional spelling of inhibited in comments and panic
messages.
This commit is contained in:
parent
75d8013fc1
commit
2a3330b81a
@ -186,7 +186,7 @@ setrunqueue(struct thread *td, int flags)
|
||||
curthread->td_proc->p_comm);
|
||||
mtx_assert(&sched_lock, MA_OWNED);
|
||||
KASSERT((td->td_inhibitors == 0),
|
||||
("setrunqueue: trying to run inhibitted thread"));
|
||||
("setrunqueue: trying to run inhibited thread"));
|
||||
KASSERT((TD_CAN_RUN(td) || TD_IS_RUNNING(td)),
|
||||
("setrunqueue: bad thread state"));
|
||||
TD_SET_RUNQ(td);
|
||||
@ -279,7 +279,7 @@ maybe_preempt(struct thread *td)
|
||||
KASSERT ((ctd->td_sched != NULL && ctd->td_sched->ts_thread == ctd),
|
||||
("thread has no (or wrong) sched-private part."));
|
||||
KASSERT((td->td_inhibitors == 0),
|
||||
("maybe_preempt: trying to run inhibitted thread"));
|
||||
("maybe_preempt: trying to run inhibited thread"));
|
||||
pri = td->td_priority;
|
||||
cpri = ctd->td_priority;
|
||||
if (panicstr != NULL || pri >= cpri || cold /* || dumping */ ||
|
||||
|
@ -665,7 +665,7 @@ thread_single(int mode)
|
||||
if (TD_IS_SUSPENDED(td2))
|
||||
continue;
|
||||
/*
|
||||
* maybe other inhibitted states too?
|
||||
* maybe other inhibited states too?
|
||||
*/
|
||||
if ((td2->td_flags & TDF_SINTR) &&
|
||||
(td2->td_inhibitors &
|
||||
|
@ -893,7 +893,7 @@ sched_switch(struct thread *td, struct thread *newtd, int flags)
|
||||
* * A followon
|
||||
*/
|
||||
KASSERT((newtd->td_inhibitors == 0),
|
||||
("trying to run inhibitted thread"));
|
||||
("trying to run inhibited thread"));
|
||||
newtd->td_sched->ts_flags |= TSF_DIDRUN;
|
||||
TD_SET_RUNNING(newtd);
|
||||
if ((newtd->td_proc->p_flag & P_NOLOAD) == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user