summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_synch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 53ab46f..d376910 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -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 {
OpenPOWER on IntegriCloud