public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]sched: convert wall-time to vruntime for check_preempt_tick
@ 2011-04-07 12:43 Shaohua Li
  2011-04-07 13:34 ` Mike Galbraith
  0 siblings, 1 reply; 6+ messages in thread
From: Shaohua Li @ 2011-04-07 12:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, zheng.z.yan

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);
 	}
 }

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-08  5:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07 12:43 [PATCH]sched: convert wall-time to vruntime for check_preempt_tick Shaohua Li
2011-04-07 13:34 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox