From e950c064fc206231bb48bf2a3303fc4e0b6b9ad1 Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Sun, 8 Jun 2008 20:13:14 +0000 Subject: use sched_is_idle() and nuke the sched_chooseproc prototype since we already have on in sched.h --- sys/kern/kern_sched.c | 5 ++--- 1 file 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 * @@ -27,7 +27,6 @@ #include -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; -- cgit v1.2.3