summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-09-15 19:49:48 +0000
committerjhb <jhb@FreeBSD.org>2000-09-15 19:49:48 +0000
commit9028b0eeb405707d9b487c562ac6e6c6a457e11e (patch)
tree72fe99cb726e3ca5631ddb46ddff8022acf84c07 /sys
parentad31d928a6e0fff6577fbb8bf8ea4b3ac073d61b (diff)
downloadFreeBSD-src-9028b0eeb405707d9b487c562ac6e6c6a457e11e.zip
FreeBSD-src-9028b0eeb405707d9b487c562ac6e6c6a457e11e.tar.gz
Idle processes are always runnable, so let them state at SRUN.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_idle.c3
-rw-r--r--sys/kern/kern_switch.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c
index 840c0f9..b7d7031 100644
--- a/sys/kern/kern_idle.c
+++ b/sys/kern/kern_idle.c
@@ -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();
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 296e627..31c06f9 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -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);
OpenPOWER on IntegriCloud