* Fix priorities on return to user-space. Priorities may be elevated due * to static priorities in msleep() or similar. */
| 2385 | * to static priorities in msleep() or similar. |
| 2386 | */ |
| 2387 | void |
| 2388 | sched_userret_slowpath(struct thread *td) |
| 2389 | { |
| 2390 | |
| 2391 | thread_lock(td); |
| 2392 | td->td_priority = td->td_user_pri; |
| 2393 | td->td_base_pri = td->td_user_pri; |
| 2394 | tdq_setlowpri(TDQ_SELF(), td); |
| 2395 | thread_unlock(td); |
| 2396 | } |
| 2397 | |
| 2398 | /* |
| 2399 | * Handle a stathz tick. This is really only relevant for timeshare |
no test coverage detected