From: Shaohua Li <shaohua.li@intel.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Subject: [PATCH trival]sched: delete duplicate code
Date: Fri, 08 Apr 2011 12:53:09 +0800 [thread overview]
Message-ID: <1302238389.3981.92.camel@sli10-conroe> (raw)
calc_delta_fair checks NICE_0_LOAD already, delete duplicate check.
Signed-off-by: Shaohua Li<shaohua.li@intel.com>
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);
}
/*
next reply other threads:[~2011-04-08 4:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 4:53 Shaohua Li [this message]
2011-04-11 10:48 ` [tip:sched/core] sched: Eliminate dead code from wakeup_gran() tip-bot for Shaohua Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302238389.3981.92.camel@sli10-conroe \
--to=shaohua.li@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®