Lines Matching refs:sched_mode
629 thread->sched_mode = thread->saved_mode;
643 thread->saved_mode = thread->sched_mode;
644 thread->sched_mode = TH_MODE_FAIRSHARE;
662 if (thread->sched_mode == TH_MODE_REALTIME) {
663 thread->saved_mode = thread->sched_mode;
664 thread->sched_mode = TH_MODE_TIMESHARE;
676 thread->saved_mode = thread->sched_mode;
678 if (thread->sched_mode == TH_MODE_TIMESHARE) {
679 thread->sched_mode = TH_MODE_FAIRSHARE;
689 if ((thread->sched_mode == TH_MODE_TIMESHARE)
695 thread->sched_mode = thread->saved_mode;
723 thread->sched_mode = thread->saved_mode;
726 if (thread->sched_mode == TH_MODE_REALTIME) {
751 if ((thread->sched_mode == TH_MODE_TIMESHARE) && (thread->task != kernel_task) && !(thread->sched_flags & TH_SFLAG_DEMOTED_MASK)) {
761 thread->saved_mode = thread->sched_mode;
762 thread->sched_mode = TH_MODE_FAIRSHARE;