summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index d23f47e..0b8b839 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -634,12 +634,10 @@ again:
}
/*
- * set priority of child to be that of parent
- * XXXKSE hey! copying the estcpu seems dodgy.. should split it..
+ * set priority of child to be that of parent.
+ * XXXKSE this needs redefining..
*/
- mtx_lock_spin(&sched_lock);
- p2->p_ksegrp.kg_estcpu = p1->p_ksegrp.kg_estcpu;
- mtx_unlock_spin(&sched_lock);
+ kg2->kg_estcpu = td->td_ksegrp->kg_estcpu;
/*
* This begins the section where we must prevent the parent
OpenPOWER on IntegriCloud