summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-02-19 15:03:55 +0000
committerattilio <attilio@FreeBSD.org>2010-02-19 15:03:55 +0000
commitd4d3373f23d31e0911098080e5993e650b72a87e (patch)
treeae3b7de4f33f0a02ba10de34b2ff387b5b37154e /sys/kern/kern_kthread.c
parent56877714595f92a6c8ee701d82e7d1377b50e349 (diff)
downloadFreeBSD-src-d4d3373f23d31e0911098080e5993e650b72a87e.zip
FreeBSD-src-d4d3373f23d31e0911098080e5993e650b72a87e.tar.gz
Fix the grammar.
Submitted by: Brandon Gooch <bgooch at se dot edu>
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 86a37e6..5b48376 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -339,9 +339,9 @@ kthread_suspend(struct thread *td, int timo)
p = td->td_proc;
/*
- * td_pflags should not be ready by any other thread different by
+ * td_pflags should not be read by any thread other than
* curthread, but as long as this flag is invariant during the
- * thread lifetime, it is ok to check for it now.
+ * thread's lifetime, it is OK to check its state.
*/
if ((td->td_pflags & TDP_KTHREAD) == 0)
return (EINVAL);
@@ -370,9 +370,9 @@ kthread_resume(struct thread *td)
p = td->td_proc;
/*
- * td_pflags should not be ready by any other thread different by
+ * td_pflags should not be read by any thread other than
* curthread, but as long as this flag is invariant during the
- * thread lifetime, it is ok to check for it now.
+ * thread's lifetime, it is OK to check its state.
*/
if ((td->td_pflags & TDP_KTHREAD) == 0)
return (EINVAL);
OpenPOWER on IntegriCloud