* Adjust the priority class of a thread. */
| 2305 | * Adjust the priority class of a thread. |
| 2306 | */ |
| 2307 | void |
| 2308 | sched_class(struct thread *td, int class) |
| 2309 | { |
| 2310 | |
| 2311 | THREAD_LOCK_ASSERT(td, MA_OWNED); |
| 2312 | if (td->td_pri_class == class) |
| 2313 | return; |
| 2314 | td->td_pri_class = class; |
| 2315 | } |
| 2316 | |
| 2317 | /* |
| 2318 | * Return some of the child's priority and interactivity to the parent. |
no outgoing calls
no test coverage detected