oops, state cannot be two different values at once..
use || instead of &&
This commit is contained in:
parent
e32cbadc61
commit
ac8bcbb700
@ -282,7 +282,7 @@ schedcpu(arg)
|
||||
* the kse slptimes are not touched in wakeup
|
||||
* because the thread may not HAVE a KSE
|
||||
*/
|
||||
if (ke->ke_state == KES_ONRUNQ &&
|
||||
if (ke->ke_state == KES_ONRUNQ ||
|
||||
ke->ke_state == KES_RUNNING) {
|
||||
ke->ke_slptime++;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user