mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Call kse_wakeup_multi() to wakeup idle KSEs when there are threads ready
to run.
This commit is contained in:
parent
8f3031025b
commit
30a2952c90
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114266
@ -785,6 +785,7 @@ kse_sched_multi(struct kse *curkse)
|
||||
; /* Nothing to do here. */
|
||||
else if ((curthread->need_switchout == 0) &&
|
||||
(curthread->blocked == 0) && (THR_IN_CRITICAL(curthread))) {
|
||||
kse_wakeup_multi(curkse);
|
||||
/*
|
||||
* Resume the thread and tell it to yield when
|
||||
* it leaves the critical region.
|
||||
|
@ -785,6 +785,7 @@ kse_sched_multi(struct kse *curkse)
|
||||
; /* Nothing to do here. */
|
||||
else if ((curthread->need_switchout == 0) &&
|
||||
(curthread->blocked == 0) && (THR_IN_CRITICAL(curthread))) {
|
||||
kse_wakeup_multi(curkse);
|
||||
/*
|
||||
* Resume the thread and tell it to yield when
|
||||
* it leaves the critical region.
|
||||
|
Loading…
Reference in New Issue
Block a user