diff options
author | jhb <jhb@FreeBSD.org> | 2001-03-28 02:44:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-03-28 02:44:11 +0000 |
commit | 98391b90da348c14bd0bd9487e807b726f734789 (patch) | |
tree | 1893752300210335079ea9af27ce21c541681ea5 /sys/kern/kern_fork.c | |
parent | 4572ff9c78f9e673b960845742b5efce77d07348 (diff) | |
download | FreeBSD-src-98391b90da348c14bd0bd9487e807b726f734789.zip FreeBSD-src-98391b90da348c14bd0bd9487e807b726f734789.tar.gz |
Use mtx_intr_enable() on sched_lock to ensure child processes always start
with interrupts enabled rather than calling the no-longer MI function
enable_intr(). This is bogus anyways and in theory shouldn't even be
needed.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
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) |