1
0
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:
David Xu 2003-04-30 01:03:58 +00:00
parent 8f3031025b
commit 30a2952c90
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114266
2 changed files with 2 additions and 0 deletions

View File

@ -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.

View File

@ -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.