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

Idle processes are always runnable, so let them state at SRUN.

This commit is contained in:
John Baldwin 2000-09-15 19:49:48 +00:00
parent db72809d24
commit f6a0af8015
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65900
2 changed files with 1 additions and 3 deletions

View File

@ -65,7 +65,7 @@ idle_setup(void *dummy)
if (error) if (error)
panic("idle_setup: kthread_create error %d\n", 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); mtx_enter(&sched_lock, MTX_SPIN);
idleproc->p_stat = SWAIT;
mi_switch(); mi_switch();
mtx_exit(&sched_lock, MTX_SPIN); mtx_exit(&sched_lock, MTX_SPIN);
spl0(); spl0();

View File

@ -233,7 +233,6 @@ chooseproc(void)
} else { } else {
CTR1(KTR_PROC, "chooseproc: idleproc, schedlock %lx", CTR1(KTR_PROC, "chooseproc: idleproc, schedlock %lx",
(long)sched_lock.mtx_lock); (long)sched_lock.mtx_lock);
idleproc->p_stat = SRUN;
return idleproc; return idleproc;
} }
p = TAILQ_FIRST(q); p = TAILQ_FIRST(q);