Lines Matching defs:pri
663 // pri < 0 disables priority inheritance and goes back to the naturally computed values
664 void sched_inherit_priority(thread_t* t, int pri, bool* local_resched) {
667 if (pri > HIGHEST_PRIORITY) {
668 pri = HIGHEST_PRIORITY;
672 if (pri >= 0 && pri <= t->inherited_priority) {
677 t->inherited_priority = pri;
698 void sched_change_priority(thread_t* t, int pri) {
705 if (pri > HIGHEST_PRIORITY) {
706 pri = HIGHEST_PRIORITY;
710 t->base_priority = pri;
800 LOCAL_KTRACE2("resched old pri", (uint32_t)oldthread->user_tid, effec_priority(oldthread));
801 LOCAL_KTRACE2("resched new pri", (uint32_t)newthread->user_tid, effec_priority(newthread));
884 TRACE_CONTEXT_SWITCH("cpu %u old %p (%s, pri %d [%d:%d], flags 0x%x) "
885 "new %p (%s, pri %d [%d:%d], flags 0x%x)\n",