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

Function sched_unbind

freebsd/kern/sched_ule.c:2736–2748  ·  view source on GitHub ↗

* Release a bound thread. */

Source from the content-addressed store, hash-verified

2734 * Release a bound thread.
2735 */
2736void
2737sched_unbind(struct thread *td)
2738{
2739 struct td_sched *ts;
2740
2741 THREAD_LOCK_ASSERT(td, MA_OWNED);
2742 KASSERT(td == curthread, ("sched_unbind: can only bind curthread"));
2743 ts = td_get_sched(td);
2744 if ((ts->ts_flags & TSF_BOUND) == 0)
2745 return;
2746 ts->ts_flags &= ~TSF_BOUND;
2747 sched_unpin();
2748}
2749
2750int
2751sched_is_bound(struct thread *td)

Callers 15

quiesce_cpusFunction · 0.70
epoch_wait_preemptFunction · 0.70
epoch_drain_callbacksFunction · 0.70
cf_set_methodFunction · 0.70
sched_bindFunction · 0.70
cpu_initclocksFunction · 0.50
native_apic_free_vectorFunction · 0.50
mca_scan_cpusFunction · 0.50
x86_msr_opFunction · 0.50
cpu_est_clockrateFunction · 0.50
sysctl_epp_selectFunction · 0.50

Calls 2

td_get_schedFunction · 0.85
sched_unpinFunction · 0.85

Tested by

no test coverage detected