From: Dmitry Adamushko Date: Mon, 15 Oct 2007 15:00:06 +0000 (+0200) Subject: sched: clean up schedstat block in dequeue_entity() X-Git-Tag: v2.6.24-rc1~1289^2~106 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db36cc7d6d9e538481e60fae7f56646b92557526;p=linux-2.6 sched: clean up schedstat block in dequeue_entity() Better placement of #ifdef CONFIG_SCHEDSTAT block in dequeue_entity(). Signed-off-by: Dmitry Adamushko Signed-off-by: Ingo Molnar Signed-off-by: Mike Galbraith Signed-off-by: Peter Zijlstra Reviewed-by: Thomas Gleixner --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 2df5a64678..e3081fb65d 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -460,8 +460,8 @@ static void dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) { update_stats_dequeue(cfs_rq, se); - if (sleep) { #ifdef CONFIG_SCHEDSTATS + if (sleep) { if (entity_is_task(se)) { struct task_struct *tsk = task_of(se); @@ -470,8 +470,8 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) if (tsk->state & TASK_UNINTERRUPTIBLE) se->block_start = rq_of(cfs_rq)->clock; } -#endif } +#endif __dequeue_entity(cfs_rq, se); }