* Update the thread's priority when the associated process's user * priority changes. */
| 620 | * priority changes. |
| 621 | */ |
| 622 | static void |
| 623 | resetpriority_thread(struct thread *td) |
| 624 | { |
| 625 | |
| 626 | /* Only change threads with a time sharing user priority. */ |
| 627 | if (td->td_priority < PRI_MIN_TIMESHARE || |
| 628 | td->td_priority > PRI_MAX_TIMESHARE) |
| 629 | return; |
| 630 | |
| 631 | /* XXX the whole needresched thing is broken, but not silly. */ |
| 632 | maybe_resched(td); |
| 633 | |
| 634 | sched_prio(td, td->td_user_pri); |
| 635 | } |
| 636 | |
| 637 | /* ARGSUSED */ |
| 638 | static void |
no test coverage detected