* Return some of the child's priority and interactivity to the parent. */
| 2318 | * Return some of the child's priority and interactivity to the parent. |
| 2319 | */ |
| 2320 | void |
| 2321 | sched_exit(struct proc *p, struct thread *child) |
| 2322 | { |
| 2323 | struct thread *td; |
| 2324 | |
| 2325 | KTR_STATE1(KTR_SCHED, "thread", sched_tdname(child), "proc exit", |
| 2326 | "prio:%d", child->td_priority); |
| 2327 | PROC_LOCK_ASSERT(p, MA_OWNED); |
| 2328 | td = FIRST_THREAD_IN_PROC(p); |
| 2329 | sched_exit_thread(td, child); |
| 2330 | } |
| 2331 | |
| 2332 | /* |
| 2333 | * Penalize another thread for the time spent on this one. This helps to |
no test coverage detected