[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1302238389.3981.92.camel@sli10-conroe>
Date: Fri, 08 Apr 2011 12:53:09 +0800
From: Shaohua Li <shaohua.li@...el.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: Ingo Molnar <mingo@...e.hu>
Subject: [PATCH trival]sched: delete duplicate code
calc_delta_fair checks NICE_0_LOAD already, delete duplicate check.
Signed-off-by: Shaohua Li<shaohua.li@...el.com>
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 3f7ec9e..55375d8 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1788,10 +1788,7 @@ wakeup_gran(struct sched_entity *curr, struct sched_entity *se)
* This is especially important for buddies when the leftmost
* task is higher priority than the buddy.
*/
- if (unlikely(se->load.weight != NICE_0_LOAD))
- gran = calc_delta_fair(gran, se);
-
- return gran;
+ return calc_delta_fair(gran, se);
}
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists