Set the scheduling class of the idle threads to PRI_IDLE.
While there, set their priority with sched_prio() instead of changing it 'by hand'. Reviewed by: jhb Approved by: grehan (mentor)
This commit is contained in:
parent
dbfdf1736b
commit
339a7e7fbb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141246
@ -83,7 +83,8 @@ idle_setup(void *dummy)
|
||||
td = FIRST_THREAD_IN_PROC(p);
|
||||
TD_SET_CAN_RUN(td);
|
||||
td->td_flags |= TDF_IDLETD;
|
||||
td->td_priority = PRI_MAX_IDLE;
|
||||
sched_class(td->td_ksegrp, PRI_IDLE);
|
||||
sched_prio(td, PRI_MAX_IDLE);
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
PROC_UNLOCK(p);
|
||||
#ifdef SMP
|
||||
|
Loading…
Reference in New Issue
Block a user