Commit 2097f3a7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] minor sched.c cleanup

Signed-off-by: default avatarChristian Meder <chris@onestepahead.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>

The following obviously correct patch from Christian Meder simplifies the
DELTA() define.
parent c8932afa
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment