public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] minor sched.c cleanup, BK-curr
@ 2004-05-24 20:54 Ingo Molnar
  0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2004-05-24 20:54 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel, Christian Meder


Linus, Andrew,

the following obviously correct patch from Christian Meder simplifies
the DELTA() define. It's against BK-curr.

Signed-off-by: Christian Meder <chris@onestepahead.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

--- linux/kernel/sched.c.orig	
+++ linux/kernel/sched.c	
@@ -141,8 +141,7 @@
 	(v1) * (v2_max) / (v1_max)
 
 #define DELTA(p) \
-	(SCALE(TASK_NICE(p), 40, MAX_USER_PRIO*PRIO_BONUS_RATIO/100) + \
-		INTERACTIVE_DELTA)
+	(SCALE(TASK_NICE(p), 40, MAX_BONUS) + INTERACTIVE_DELTA)
 
 #define TASK_INTERACTIVE(p) \
 	((p)->prio <= (p)->static_prio - DELTA(p))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-24 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-24 20:54 [patch] minor sched.c cleanup, BK-curr Ingo Molnar

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