From bfe6598264556a107981bc80118a77d21255ae3b Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 4 Aug 2003 20:35:13 +0000 Subject: [PATCH] Adjust a comment to remove staleness and take slightly less implementation specific perspective. --- sys/kern/kern_fork.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 226a42c3bd2b..1c5a1d4a8171 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 //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;