]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: SCHED_IDLE weight change
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 15 Jan 2009 13:53:37 +0000 (14:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 15 Jan 2009 14:07:28 +0000 (15:07 +0100)
Increase the SCHED_IDLE weight from 2 to 3, this gives much more stable
vruntime numbers.

time advanced in 100ms:

 weight=2

 64765.988352
 67012.881408
 88501.412352

 weight=3

 35496.181411
 34130.971298
 35497.411573

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index ed62d1cee05c0310f56976fec9d542d044d1ee59..6acfb3c2398b988cd0dc907f7f4996237c156a58 100644 (file)
@@ -1323,8 +1323,8 @@ static inline void update_load_sub(struct load_weight *lw, unsigned long dec)
  * slice expiry etc.
  */
 
-#define WEIGHT_IDLEPRIO                2
-#define WMULT_IDLEPRIO         (1 << 31)
+#define WEIGHT_IDLEPRIO                3
+#define WMULT_IDLEPRIO         1431655765
 
 /*
  * Nice levels are multiplicative, with a gentle 10% change for every