sched: Eliminate dead code from wakeup_gran()
authorShaohua Li <shaohua.li@intel.com>
Fri, 8 Apr 2011 04:53:09 +0000 (12:53 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Apr 2011 09:08:55 +0000 (11:08 +0200)
calc_delta_fair() checks NICE_0_LOAD already, delete duplicate check.

Signed-off-by: Shaohua Li<shaohua.li@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Link: http://lkml.kernel.org/r/1302238389.3981.92.camel@sli10-conroe
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c

index 6fa833a..4ee50f0 100644 (file)
@@ -1789,10 +1789,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);
 }
 
 /*