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

Function sched_userret_slowpath

freebsd/kern/sched_ule.c:2387–2396  ·  view source on GitHub ↗

* Fix priorities on return to user-space. Priorities may be elevated due * to static priorities in msleep() or similar. */

Source from the content-addressed store, hash-verified

2385 * to static priorities in msleep() or similar.
2386 */
2387void
2388sched_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

Callers 1

sched_userretFunction · 0.50

Calls 1

tdq_setlowpriFunction · 0.85

Tested by

no test coverage detected