Skip to contentSkip to conversation

minor sched.c cleanup, BK-curr

PATCH New Ingo Molnar 1 participant 1 message May 24, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minor sched.c cleanup, BK-curr

Linus, Andrew,

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

kernel/sched.c renamed from kernel/sched.c.orig +1 -2
@@ -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))