[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-f4ad9bd208c98f32a6f9136618e0b8bebe3fb370@git.kernel.org>
Date: Mon, 11 Apr 2011 10:48:55 GMT
From: tip-bot for Shaohua Li <shaohua.li@...el.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
a.p.zijlstra@...llo.nl, efault@....de, shaohua.li@...el.com,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:sched/core] sched: Eliminate dead code from wakeup_gran()
Commit-ID: f4ad9bd208c98f32a6f9136618e0b8bebe3fb370
Gitweb: http://git.kernel.org/tip/f4ad9bd208c98f32a6f9136618e0b8bebe3fb370
Author: Shaohua Li <shaohua.li@...el.com>
AuthorDate: Fri, 8 Apr 2011 12:53:09 +0800
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Mon, 11 Apr 2011 11:08:55 +0200
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@...el.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Mike Galbraith <efault@....de>
Link: http://lkml.kernel.org/r/1302238389.3981.92.camel@sli10-conroe
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/sched_fair.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 6fa833a..4ee50f0 100644
--- a/kernel/sched_fair.c
+++ b/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
* 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