diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-06-08 20:13:14 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-06-08 20:13:14 +0000 |
commit | e950c064fc206231bb48bf2a3303fc4e0b6b9ad1 (patch) | |
tree | 23d4df4bd7103cc3989998b99d81cfa121c85b01 /sys | |
parent | 5fa04617da2eefbf68755abcee411f88f654dfc0 (diff) |
use sched_is_idle() and nuke the sched_chooseproc prototype since we
already have on in sched.h
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sched.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index 84a66fa7510..3357da7c492 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sched.c,v 1.2 2007/11/26 17:15:29 art Exp $ */ +/* $OpenBSD: kern_sched.c,v 1.3 2008/06/08 20:13:13 thib Exp $ */ /* * Copyright (c) 2007 Artur Grabowski <art@openbsd.org> * @@ -27,7 +27,6 @@ #include <uvm/uvm_extern.h> -struct proc *sched_chooseproc(void); void sched_kthreads_create(void *); void sched_idle(void *); @@ -211,7 +210,7 @@ sched_chooseproc(void) SCHED_ASSERT_LOCKED(); again: - if (sched_whichqs == 0) { + if (sched_is_idle()) { p = curcpu()->ci_schedstate.spc_idleproc; if (p == NULL) { int s; |