mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Idle processes are always runnable, so let them state at SRUN.
This commit is contained in:
parent
db72809d24
commit
f6a0af8015
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65900
@ -65,7 +65,7 @@ idle_setup(void *dummy)
|
||||
if (error)
|
||||
panic("idle_setup: kthread_create error %d\n", error);
|
||||
|
||||
gd->gd_idleproc->p_stat = SWAIT;
|
||||
gd->gd_idleproc->p_stat = SRUN;
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,7 +100,6 @@ idle_proc(void *dummy)
|
||||
}
|
||||
|
||||
mtx_enter(&sched_lock, MTX_SPIN);
|
||||
idleproc->p_stat = SWAIT;
|
||||
mi_switch();
|
||||
mtx_exit(&sched_lock, MTX_SPIN);
|
||||
spl0();
|
||||
|
@ -233,7 +233,6 @@ chooseproc(void)
|
||||
} else {
|
||||
CTR1(KTR_PROC, "chooseproc: idleproc, schedlock %lx",
|
||||
(long)sched_lock.mtx_lock);
|
||||
idleproc->p_stat = SRUN;
|
||||
return idleproc;
|
||||
}
|
||||
p = TAILQ_FIRST(q);
|
||||
|
Loading…
Reference in New Issue
Block a user