Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=db36cc7d6d9e538481e60fae7f56646b92557526
Commit:     db36cc7d6d9e538481e60fae7f56646b92557526
Parent:     bbdba7c0e1161934ae881ad00e4db49830f5ef59
Author:     Dmitry Adamushko <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:06 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:06 2007 +0200

    sched: clean up schedstat block in dequeue_entity()
    
    Better placement of #ifdef CONFIG_SCHEDSTAT block in dequeue_entity().
    
    Signed-off-by: Dmitry Adamushko <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Mike Galbraith <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Reviewed-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 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 2df5a64..e3081fb 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);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to