diff options
author | jeff <jeff@FreeBSD.org> | 2002-11-21 01:22:38 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-11-21 01:22:38 +0000 |
commit | 49bf96275f3964fb635238eb94eec3afbc449864 (patch) | |
tree | ffffe185be0dc78e5e3c311d7fcb3156b1524543 /sys/kern/sched_4bsd.c | |
parent | 8fd30b58c6c738e9fb184bb33bf58c140f0fac3a (diff) | |
download | FreeBSD-src-49bf96275f3964fb635238eb94eec3afbc449864.zip FreeBSD-src-49bf96275f3964fb635238eb94eec3afbc449864.tar.gz |
- Implement a mechanism for allowing schedulers to place scheduler dependant
data in the scheduler independant structures (proc, ksegrp, kse, thread).
- Implement unused stubs for this mechanism in sched_4bsd.
Approved by: re
Reviewed by: luigi, trb
Tested on: x86, alpha
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r-- | sys/kern/sched_4bsd.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index c57262f..236a3c7 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -51,6 +51,10 @@ #include <sys/sysctl.h> #include <sys/sx.h> +struct ke_sched *kse0_sched = NULL; +struct kg_sched *ksegrp0_sched = NULL; +struct p_sched *proc0_sched = NULL; +struct td_sched *thread0_sched = NULL; static int sched_quantum; /* Roundrobin scheduling quantum in ticks. */ #define SCHED_QUANTUM (hz / 10); /* Default sched quantum */ @@ -618,3 +622,24 @@ sched_userret(struct thread *td) mtx_unlock_spin(&sched_lock); } } + +int +sched_sizeof_kse(void) +{ + return (sizeof(struct kse)); +} +int +sched_sizeof_ksegrp(void) +{ + return (sizeof(struct ksegrp)); +} +int +sched_sizeof_proc(void) +{ + return (sizeof(struct proc)); +} +int +sched_sizeof_thread(void) +{ + return (sizeof(struct thread)); +} |