diff options
author | jeff <jeff@FreeBSD.org> | 2003-04-11 19:24:00 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-04-11 19:24:00 +0000 |
commit | b5bf29d7350302d33c4b237babd2e631bc372303 (patch) | |
tree | d08868b639b7c64060d61a31fbd09f45953ae353 | |
parent | 62e212c14fd8f01d181023810612ec6471ad9763 (diff) | |
download | FreeBSD-src-b5bf29d7350302d33c4b237babd2e631bc372303.zip FreeBSD-src-b5bf29d7350302d33c4b237babd2e631bc372303.tar.gz |
- Add sched_exit_*
- Call sched_exit_kse() from sched_exit() instead of implementing it here.
-rw-r--r-- | sys/kern/sched_ule.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 9ff1712..69241c2 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -835,14 +835,25 @@ sched_class(struct ksegrp *kg, int class) void sched_exit(struct proc *p, struct proc *child) { - struct ksegrp *kg; - struct kse *ke; - /* XXX Need something better here */ mtx_assert(&sched_lock, MA_OWNED); - kg = FIRST_KSEGRP_IN_PROC(child); - ke = FIRST_KSE_IN_KSEGRP(kg); - kseq_rem(KSEQ_CPU(ke->ke_cpu), ke); + sched_exit_kse(FIRST_KSE_IN_PROC(p), FIRST_KSE_IN_PROC(child)); +} + +void +sched_exit_kse(struct kse *ke, struct kse *child) +{ + kseq_rem(KSEQ_CPU(child->ke_cpu), child); +} + +void +sched_exit_ksegrp(struct ksegrp *kg, struct ksegrp *child) +{ +} + +void +sched_exit_thread(struct thread *td, struct thread *child) +{ } void |