1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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.
This commit is contained in:
John Baldwin 2001-03-28 02:44:11 +00:00
parent 6283b7d01b
commit 35a472461a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74901

View File

@ -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)