lkml.org 
[lkml]   [2009]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH]kernel/sched_fair.c: the comment of the calc_delta_fair() maybe not correctly
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)

\
 
 \ /
  Last update: 2009-04-07 08:59    [W:0.033 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site