diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index fc967e9af35a..0339bb613c3e 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -479,7 +479,7 @@ exit1(struct thread *td, int rv) mtx_unlock(&Giant); /* - * We have to wait until after releasing all locks before + * We have to wait until after acquiring all locks before * changing p_state. If we block on a mutex then we will be * back at SRUN when we resume and our parent will never * harvest us. diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 85ade47cd60d..1761f5f6f6a8 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -179,7 +179,7 @@ struct trapframe; * execution is now, or was when it was suspended, why it was suspended, * and anything else that will be needed to restart it when it is * rescheduled. Always associated with a KSE when running, but can be - * reassigned to an equivalent KSE when being restarted for + * reassigned to an equivalent KSE when being restarted for * load balancing. Each of these is associated with a kernel stack * and a pcb. * @@ -195,7 +195,7 @@ struct trapframe; * keeps a cached thread available to allow it to quickly * get one when it needs a new one. There is also a system * cache of free threads. Threads have priority and partake in priority - * inherritance schemes. + * inheritance schemes. */ struct thread;