public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]kernel/sched_fair.c: the comment of the calc_delta_fair() maybe not correctly
@ 2009-04-07  6:33 figo.zhang
  2009-04-07 16:57 ` Américo Wang
  0 siblings, 1 reply; 4+ messages in thread
From: figo.zhang @ 2009-04-07  6:33 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel, rdunlap

the comment of the calc_delta_fair() maybe not correctly, should be
delta *= NICE_O_LOAD/se->load

Signed-off-by: figo.zhang <figo.zhang@kolorific.com>

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 3816f21..5134b45 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -386,7 +386,7 @@ int sched_nr_latency_handler(struct ctl_table
*table, int write, #endif
 
 /*
- * delta /= w
+ * delta *= NICE_O_LOAD/se->load
  */
 static inline unsigned long
 calc_delta_fair(unsigned long delta, struct sched_entity *se)

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

end of thread, other threads:[~2009-04-08  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07  6:33 [PATCH]kernel/sched_fair.c: the comment of the calc_delta_fair() maybe not correctly figo.zhang
2009-04-07 16:57 ` Américo Wang
2009-04-08  2:27   ` figo.zhang
2009-04-08  9:53     ` Peter Zijlstra

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