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/posix4 | |
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/posix4')
-rw-r--r-- | sys/posix4/ksched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/posix4/ksched.c b/sys/posix4/ksched.c index 881d4a3..62ab684 100644 --- a/sys/posix4/ksched.c +++ b/sys/posix4/ksched.c @@ -41,6 +41,7 @@ #include <sys/mutex.h> #include <sys/proc.h> #include <sys/resource.h> +#include <sys/sched.h> #include <posix4/posix4.h> @@ -56,7 +57,7 @@ int ksched_attach(struct ksched **p) struct ksched *ksched= p31b_malloc(sizeof(*ksched)); ksched->rr_interval.tv_sec = 0; - ksched->rr_interval.tv_nsec = 1000000000L / roundrobin_interval(); + ksched->rr_interval.tv_nsec = 1000000000L / sched_rr_interval(); *p = ksched; return 0; |