From: Shaohua Li <shaohua.li@intel.com>
To: linux-kernel@vger.kernel.org
Cc: mingo@elte.hu, zheng.z.yan@intel.com
Subject: [PATCH]sched: convert wall-time to vruntime for check_preempt_tick
Date: Thu, 7 Apr 2011 20:43:32 +0800 [thread overview]
Message-ID: <20110407124332.GA31809@sli10-conroe.sh.intel.com> (raw)
In check_preempt_tick(), delta is vruntime and ideal_runtime is wall runtime.
Comparing vruntime and ideal_runtime looks buggy.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 3f7ec9e..0b76e3a 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1121,7 +1121,7 @@ check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr)
if (delta < 0)
return;
- if (delta > ideal_runtime)
+ if (delta > calc_delta_fair(ideal_runtime, curr))
resched_task(rq_of(cfs_rq)->curr);
}
}
next reply other threads:[~2011-04-07 12:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 12:43 Shaohua Li [this message]
2011-04-07 13:34 ` [PATCH]sched: convert wall-time to vruntime for check_preempt_tick Mike Galbraith
2011-04-08 0:35 ` Shaohua Li
2011-04-08 2:49 ` Mike Galbraith
2011-04-08 4:55 ` Shaohua Li
2011-04-08 5:31 ` Mike Galbraith
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=20110407124332.GA31809@sli10-conroe.sh.intel.com \
--to=shaohua.li@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=zheng.z.yan@intel.com \
/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