MCPcopy Create free account
hub / github.com/F-Stack/f-stack / resetpriority_thread

Function resetpriority_thread

freebsd/kern/sched_4bsd.c:622–635  ·  view source on GitHub ↗

* Update the thread's priority when the associated process's user * priority changes. */

Source from the content-addressed store, hash-verified

620 * priority changes.
621 */
622static void
623resetpriority_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 */
638static void

Callers 3

schedcpuFunction · 0.85
sched_clock_tickFunction · 0.85
sched_niceFunction · 0.85

Calls 2

maybe_reschedFunction · 0.85
sched_prioFunction · 0.70

Tested by

no test coverage detected