Lines Matching refs:priority

275 static boolean_t	priority_is_urgent(int priority);
280 int priority,
339 int priority);
1577 int priority)
1585 return (wait_queue_wakeup_one(wq, event, result, priority));
1640 * Update the priority.
1700 /* I am the highest priority runnable (non-idle) thread */
1910 * to the original priority of the thread so that the
1917 * "background" priority.
1920 (thread->priority <= MAXPRI_THROTTLE))
1921 thread_tell_urgency(THREAD_URGENCY_BACKGROUND, thread->sched_pri, thread->priority);
1923 thread_tell_urgency(THREAD_URGENCY_NORMAL, thread->sched_pri, thread->priority);
1958 int priority)
1962 thread = choose_thread(processor, runq_for_processor(processor), priority);
1979 * priority.
1988 int priority)
1994 while (count > 0 && pri >= priority) {
2467 * "background" priority.
2470 (self->priority <= MAXPRI_THROTTLE))
2471 thread_tell_urgency(THREAD_URGENCY_BACKGROUND, self->sched_pri, self->priority);
2473 thread_tell_urgency(THREAD_URGENCY_NORMAL, self->sched_pri, self->priority);
2671 if ((thread == THREAD_NULL) || thread->priority > MAXPRI_THROTTLE)
3029 priority_is_urgent(int priority)
3031 return testbit(priority, sched_preempt_pri) ? TRUE : FALSE;
3111 if ((thread->sched_mode == TH_MODE_TIMESHARE) && thread->sched_pri < thread->priority)
3212 int priority,
3216 return runq_for_processor(processor)->highq >= priority;
3218 return runq_for_processor(processor)->highq > priority;
3359 * thread with the lowest priority within
3532 * Update priority if needed.
3733 * Set the scheduled priority of the specified thread.
3742 int priority)
3746 thread->sched_pri = priority;
3756 processor->current_pri = priority;
4040 (thread->priority <= MAXPRI_THROTTLE)) {
4041 KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_SCHED, MACH_SCHED_GET_URGENCY), THREAD_URGENCY_BACKGROUND, thread->sched_pri, thread->priority, 0, 0);
4232 thread->sched_pri = thread->priority = IDLEPRI;