From 2a3330b81a085a0dd5271c983fe9e8996385248d Mon Sep 17 00:00:00 2001 From: rwatson Date: Sun, 31 Dec 2006 15:56:04 +0000 Subject: Prefer a more traditional spelling of inhibited in comments and panic messages. --- sys/kern/kern_switch.c | 4 ++-- sys/kern/kern_thread.c | 2 +- sys/kern/sched_4bsd.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 039c781..f1f81af 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -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 */ || diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index b1be2c9..2fe3bf8 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -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 & diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 0d12109..4a52a71 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -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) -- cgit v1.1