mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
- Add sched_exit_*
- Call sched_exit_kse() from sched_exit() instead of implementing it here.
This commit is contained in:
parent
58177de2de
commit
141ad61c78
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113372
@ -835,14 +835,25 @@ sched_class(struct ksegrp *kg, int class)
|
|||||||
void
|
void
|
||||||
sched_exit(struct proc *p, struct proc *child)
|
sched_exit(struct proc *p, struct proc *child)
|
||||||
{
|
{
|
||||||
struct ksegrp *kg;
|
|
||||||
struct kse *ke;
|
|
||||||
|
|
||||||
/* XXX Need something better here */
|
/* XXX Need something better here */
|
||||||
mtx_assert(&sched_lock, MA_OWNED);
|
mtx_assert(&sched_lock, MA_OWNED);
|
||||||
kg = FIRST_KSEGRP_IN_PROC(child);
|
sched_exit_kse(FIRST_KSE_IN_PROC(p), FIRST_KSE_IN_PROC(child));
|
||||||
ke = FIRST_KSE_IN_KSEGRP(kg);
|
}
|
||||||
kseq_rem(KSEQ_CPU(ke->ke_cpu), ke);
|
|
||||||
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user