aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 342000b31ad6..471fa281f5e0 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -652,6 +652,11 @@ static void enqueue_sleeper(struct cfs_rq *cfs_rq, struct sched_entity *se)
652 se->sum_sleep_runtime += delta; 652 se->sum_sleep_runtime += delta;
653 653
654 if (tsk) { 654 if (tsk) {
655 if (tsk->in_iowait) {
656 se->iowait_sum += delta;
657 se->iowait_count++;
658 }
659
655 /* 660 /*
656 * Blocking time is in units of nanosecs, so shift by 661 * Blocking time is in units of nanosecs, so shift by
657 * 20 to get a milliseconds-range estimation of the 662 * 20 to get a milliseconds-range estimation of the