diff options
author | jeff <jeff@FreeBSD.org> | 2002-10-12 05:32:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-10-12 05:32:24 +0000 |
commit | ef4d4e378e012b3efd909e2abc5c1ddcf38faee7 (patch) | |
tree | 69991942d3c51153d9210031e7380779edf05aaf /sys/kern/kern_idle.c | |
parent | cf318b70e5aa88b25cdf3d47eacce75c5aa889db (diff) | |
download | FreeBSD-src-ef4d4e378e012b3efd909e2abc5c1ddcf38faee7.zip FreeBSD-src-ef4d4e378e012b3efd909e2abc5c1ddcf38faee7.tar.gz |
- Create a new scheduler api that is defined in sys/sched.h
- Begin moving scheduler specific functionality into sched_4bsd.c
- Replace direct manipulation of scheduler data with hooks provided by the
new api.
- Remove KSE specific state modifications and single runq assumptions from
kern_switch.c
Reviewed by: -arch
Diffstat (limited to 'sys/kern/kern_idle.c')
-rw-r--r-- | sys/kern/kern_idle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index bf8e922..4d57749 100644 --- a/sys/kern/kern_idle.c +++ b/sys/kern/kern_idle.c @@ -16,6 +16,7 @@ #include <sys/pcpu.h> #include <sys/proc.h> #include <sys/resourcevar.h> +#include <sys/sched.h> #include <sys/smp.h> #include <sys/unistd.h> #ifdef KTRACE @@ -90,9 +91,9 @@ idle_proc(void *dummy) #ifdef DIAGNOSTIC count = 0; - while (count >= 0 && kserunnable() == 0) { + while (count >= 0 && sched_runnable() == 0) { #else - while (kserunnable() == 0) { + while (sched_runnable() == 0) { #endif /* * This is a good place to put things to be done in |