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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 2f9b3aa..62f9c86 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -713,11 +713,11 @@ fork_exit(callout, arg, frame)
*/
sched_lock.mtx_lock = (uintptr_t)p;
sched_lock.mtx_recurse = 0;
- mtx_unlock_spin(&sched_lock);
/*
* XXX: We really shouldn't have to do this.
*/
- enable_intr();
+ mtx_intr_enable(&sched_lock);
+ mtx_unlock_spin(&sched_lock);
#ifdef SMP
if (PCPU_GET(switchtime.tv_sec) == 0)
OpenPOWER on IntegriCloud