diff options
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 2df5a6467812..e3081fb65d63 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -460,8 +460,8 @@ static void | |||
460 | dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) | 460 | dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) |
461 | { | 461 | { |
462 | update_stats_dequeue(cfs_rq, se); | 462 | update_stats_dequeue(cfs_rq, se); |
463 | if (sleep) { | ||
464 | #ifdef CONFIG_SCHEDSTATS | 463 | #ifdef CONFIG_SCHEDSTATS |
464 | if (sleep) { | ||
465 | if (entity_is_task(se)) { | 465 | if (entity_is_task(se)) { |
466 | struct task_struct *tsk = task_of(se); | 466 | struct task_struct *tsk = task_of(se); |
467 | 467 | ||
@@ -470,8 +470,8 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) | |||
470 | if (tsk->state & TASK_UNINTERRUPTIBLE) | 470 | if (tsk->state & TASK_UNINTERRUPTIBLE) |
471 | se->block_start = rq_of(cfs_rq)->clock; | 471 | se->block_start = rq_of(cfs_rq)->clock; |
472 | } | 472 | } |
473 | #endif | ||
474 | } | 473 | } |
474 | #endif | ||
475 | __dequeue_entity(cfs_rq, se); | 475 | __dequeue_entity(cfs_rq, se); |
476 | } | 476 | } |
477 | 477 | ||