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

Function tdq_load_add

freebsd/kern/sched_ule.c:537–549  ·  view source on GitHub ↗

* Load is maintained for all threads RUNNING and ON_RUNQ. Add the load * for this thread to the referenced thread queue. */

Source from the content-addressed store, hash-verified

535 * for this thread to the referenced thread queue.
536 */
537static void
538tdq_load_add(struct tdq *tdq, struct thread *td)
539{
540
541 TDQ_LOCK_ASSERT(tdq, MA_OWNED);
542 THREAD_LOCK_BLOCKED_ASSERT(td, MA_OWNED);
543
544 tdq->tdq_load++;
545 if ((td->td_flags & TDF_NOLOAD) == 0)
546 tdq->tdq_sysload++;
547 KTR_COUNTER0(KTR_SCHED, "load", tdq->tdq_loadname, tdq->tdq_load);
548 SDT_PROBE2(sched, , , load__change, (int)TDQ_ID(tdq), tdq->tdq_load);
549}
550
551/*
552 * Remove the load from a thread that is transitioning to a sleep state or

Callers 2

sched_setupFunction · 0.85
tdq_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected