Lines Matching defs:prio
1850 sched_thread_priority(struct thread *td, u_char prio)
1855 KTR_POINT3(KTR_SCHED, "thread", sched_tdname(td), "prio",
1856 "prio:%d", td->td_priority, "new prio:%d", prio,
1858 SDT_PROBE3(sched, , , change__pri, td, td->td_proc, prio);
1859 if (td != curthread && prio < td->td_priority) {
1861 "lend prio", "prio:%d", td->td_priority, "new prio:%d",
1862 prio, KTR_ATTR_LINKED, sched_tdname(td));
1863 SDT_PROBE4(sched, , , lend__pri, td, td->td_proc, prio,
1867 if (td->td_priority == prio)
1875 if (TD_ON_RUNQ(td) && prio < td->td_priority) {
1877 td->td_priority = prio;
1888 td->td_priority = prio;
1889 if (prio < tdq->tdq_lowpri)
1890 tdq->tdq_lowpri = prio;
1895 td->td_priority = prio;
1903 sched_lend_prio(struct thread *td, u_char prio)
1907 sched_thread_priority(td, prio);
1912 * over. The prio argument is the minimum priority the thread
1915 * important than prio, the thread will keep a priority boost
1916 * of prio.
1919 sched_unlend_prio(struct thread *td, u_char prio)
1928 if (prio >= base_pri) {
1932 sched_lend_prio(td, prio);
1939 sched_prio(struct thread *td, u_char prio)
1944 td->td_base_pri = prio;
1950 if (td->td_flags & TDF_BORROWING && td->td_priority < prio)
1955 sched_thread_priority(td, prio);
1961 if (TD_ON_LOCK(td) && oldprio != prio)
1969 sched_ithread_prio(struct thread *td, u_char prio)
1973 td->td_base_ithread_pri = prio;
1974 sched_prio(td, prio);
1981 sched_user_prio(struct thread *td, u_char prio)
1984 td->td_base_user_pri = prio;
1985 if (td->td_lend_user_pri <= prio)
1987 td->td_user_pri = prio;
1991 sched_lend_user_prio(struct thread *td, u_char prio)
1995 td->td_lend_user_pri = prio;
1996 td->td_user_pri = min(prio, td->td_base_user_pri);
2007 sched_lend_user_prio_cond(struct thread *td, u_char prio)
2010 if (td->td_lend_user_pri == prio)
2014 sched_lend_user_prio(td, prio);
2251 "prio:%d", td->td_priority);
2254 "prio:%d", td->td_priority, "wmesg:\"%s\"", td->td_wmesg,
2305 "prio:%d", td->td_priority);
2331 sched_sleep(struct thread *td, int prio)
2339 if (static_boost == 1 && prio)
2340 sched_prio(td, prio);
2475 "prio:%d", child->td_priority);
2492 "prio:%d", child->td_priority);
2765 "prio:%d", td->td_priority, KTR_ATTR_LINKED,
2822 "prio:%d", td->td_priority);
3167 "prio:%d", td->td_priority);