diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-12-31 15:56:04 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-12-31 15:56:04 +0000 |
commit | 2a3330b81a085a0dd5271c983fe9e8996385248d (patch) | |
tree | 09eec0a626a37837dc1e5aab41d4dc11333a2b23 | |
parent | 75d8013fc1902ad0d9d84ee6a0327f41c8258d69 (diff) | |
download | FreeBSD-src-2a3330b81a085a0dd5271c983fe9e8996385248d.zip FreeBSD-src-2a3330b81a085a0dd5271c983fe9e8996385248d.tar.gz |
Prefer a more traditional spelling of inhibited in comments and panic
messages.
-rw-r--r-- | sys/kern/kern_switch.c | 4 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 2 | ||||
-rw-r--r-- | sys/kern/sched_4bsd.c | 2 |
3 files changed, 4 insertions, 4 deletions
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) |