summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-08-04 20:35:13 +0000
committerjhb <jhb@FreeBSD.org>2003-08-04 20:35:13 +0000
commite71dfc3b00582eb08f83089cbad7ae992c60728c (patch)
tree0f92210bce00d90523122b29e819bb02866d1118 /sys
parentb47c7929f52663362491b3bd61378fdaaa6ff5b8 (diff)
downloadFreeBSD-src-e71dfc3b00582eb08f83089cbad7ae992c60728c.zip
FreeBSD-src-e71dfc3b00582eb08f83089cbad7ae992c60728c.tar.gz
Adjust a comment to remove staleness and take slightly less implementation
specific perspective.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_fork.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 226a42c..1c5a1d4 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -768,12 +768,8 @@ fork_exit(callout, arg, frame)
td->td_oncpu = PCPU_GET(cpuid);
p->p_state = PRS_NORMAL;
/*
- * Finish setting up thread glue. We need to initialize
- * the thread into a td_critnest=1 state. Some platforms
- * may have already partially or fully initialized td_critnest
- * and/or td_md.md_savecrit (when applciable).
- *
- * see <arch>/<arch>/critical.c
+ * Finish setting up thread glue so that it begins execution in a
+ * non-nested critical section with sched_lock held but not recursed.
*/
sched_lock.mtx_lock = (uintptr_t)td;
sched_lock.mtx_recurse = 0;
OpenPOWER on IntegriCloud