diff options
author | kib <kib@FreeBSD.org> | 2016-06-16 12:01:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-06-16 12:01:11 +0000 |
commit | 2c44599f9cf7cf8083305e492d232b68f3682570 (patch) | |
tree | 8d44c470eb6c2e7071ef0e2f9c2ccee96e815d31 /sys/kern/kern_thread.c | |
parent | aea5f52dbcf4480f1384cac0e0753b97554e9f6f (diff) | |
download | FreeBSD-src-2c44599f9cf7cf8083305e492d232b68f3682570.zip FreeBSD-src-2c44599f9cf7cf8083305e492d232b68f3682570.tar.gz |
Remove XXX comments from kern_thread.c. In one case, there is no
reason for it in modern times. In the other case, expand the comment
stating instead of doubting.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (hrs)
X-Differential revision: https://reviews.freebsd.org/D6731
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 7ad3f19..70491c5 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -480,7 +480,7 @@ thread_exit(void) * architecture specific resources that * would not be on a new untouched process. */ - cpu_thread_exit(td); /* XXXSMP */ + cpu_thread_exit(td); /* * The last thread is left attached to the process @@ -907,8 +907,8 @@ thread_suspend_check(int return_instead) /* * The only suspension in action is a * single-threading. Single threader need not stop. - * XXX Should be safe to access unlocked - * as it can only be set to be true by us. + * It is safe to access p->p_singlethread unlocked + * because it can only be set to our address by us. */ if (p->p_singlethread == td) return (0); /* Exempt from stopping. */ |