Преглед на файлове

sched: Eliminate dead code from wakeup_gran()

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>
Shaohua Li преди 14 години
родител
ревизия
f4ad9bd208
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      kernel/sched_fair.c

+ 1 - 4
kernel/sched_fair.c

@@ -1789,10 +1789,7 @@ wakeup_gran(struct sched_entity *curr, struct sched_entity *se)
 	 * This is especially important for buddies when the leftmost
 	 * This is especially important for buddies when the leftmost
 	 * task is higher priority than the buddy.
 	 * 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);
 }
 }
 
 
 /*
 /*