summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c6
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. */
OpenPOWER on IntegriCloud