[PATCH trival]sched: delete duplicate code

From: Shaohua Li
Date: Fri Apr 08 2011 - 00:53:31 EST


calc_delta_fair checks NICE_0_LOAD already, delete duplicate check.

Signed-off-by: Shaohua Li<shaohua.li@xxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/