aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched_fair.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 26fadb44250c..aa7f84121016 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -545,14 +545,13 @@ update_stats_wait_end(struct cfs_rq *cfs_rq, struct sched_entity *se)
545 schedstat_set(se->wait_count, se->wait_count + 1); 545 schedstat_set(se->wait_count, se->wait_count + 1);
546 schedstat_set(se->wait_sum, se->wait_sum + 546 schedstat_set(se->wait_sum, se->wait_sum +
547 rq_of(cfs_rq)->clock - se->wait_start); 547 rq_of(cfs_rq)->clock - se->wait_start);
548 schedstat_set(se->wait_start, 0);
549
550#ifdef CONFIG_SCHEDSTATS 548#ifdef CONFIG_SCHEDSTATS
551 if (entity_is_task(se)) { 549 if (entity_is_task(se)) {
552 trace_sched_stat_wait(task_of(se), 550 trace_sched_stat_wait(task_of(se),
553 rq_of(cfs_rq)->clock - se->wait_start); 551 rq_of(cfs_rq)->clock - se->wait_start);
554 } 552 }
555#endif 553#endif
554 schedstat_set(se->wait_start, 0);
556} 555}
557 556
558static inline void 557static inline void