Commit f4ad9bd2 authored by Shaohua Li's avatar Shaohua Li Committed by Ingo Molnar
Browse files

sched: Eliminate dead code from wakeup_gran()



calc_delta_fair() checks NICE_0_LOAD already, delete duplicate check.

Signed-off-by: default avatarShaohua <Li&lt;shaohua.li@intel.com>
Signed-off-by: default avatarPeter 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: default avatarIngo Molnar <mingo@elte.hu>
parent b30aef17
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);
}

/*