mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
also set the KSE state for the idle KSE/thread case.
This commit is contained in:
parent
ae76f60046
commit
40e550266d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99889
@ -153,9 +153,9 @@ choosethread(void)
|
||||
CTR2(KTR_RUNQ, "choosethread: td=%p pri=%d",
|
||||
td, td->td_priority);
|
||||
} else {
|
||||
/* Pretend the idle thread was on the run queue. */
|
||||
/* Simulate runq_choose() having returned the idle thread */
|
||||
td = PCPU_GET(idlethread);
|
||||
td->td_kse->ke_state = KES_UNQUEUED;
|
||||
td->td_kse->ke_state = KES_RUNNING;
|
||||
CTR1(KTR_RUNQ, "choosethread: td=%p (idle)", td);
|
||||
}
|
||||
td->td_state = TDS_RUNNING;
|
||||
|
Loading…
Reference in New Issue
Block a user