Lines Matching refs:priority
65 * Set scheduling policy & priority for thread.
71 integer_t priority)
111 if (priority >= thread->max_priority)
112 priority = thread->max_priority - thread->task_priority;
114 if (priority >= MINPRI_KERNEL)
115 priority -= MINPRI_KERNEL;
117 if (priority >= MINPRI_RESERVED)
118 priority -= MINPRI_RESERVED;
120 priority -= BASEPRI_DEFAULT;
122 priority += thread->task_priority;
124 if (priority > thread->max_priority)
125 priority = thread->max_priority;
127 if (priority < MINPRI)
128 priority = MINPRI;
130 thread->importance = priority - thread->task_priority;
132 set_priority(thread, priority);
288 * Set scheduling limits to base priority.
352 * new base priority will not exceed current limits.