Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24279
b: refs/heads/master
c: 013d386
h: refs/heads/master
i:
  24277: 5de27eb
  24275: d8a6338
  24271: c0f628c
v: v3
  • Loading branch information
Martin Andersson authored and Linus Torvalds committed Mar 27, 2006
1 parent 38b2cf3 commit b4c9e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 491214716755894986b99e0cf0a08b830d244577
refs/heads/master: 013d3868143387be99bb0373d49452eaa3c55d41
3 changes: 2 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@
(v1) * (v2_max) / (v1_max)

#define DELTA(p) \
(SCALE(TASK_NICE(p), 40, MAX_BONUS) + INTERACTIVE_DELTA)
(SCALE(TASK_NICE(p) + 20, 40, MAX_BONUS) - 20 * MAX_BONUS / 40 + \
INTERACTIVE_DELTA)

#define TASK_INTERACTIVE(p) \
((p)->prio <= (p)->static_prio - DELTA(p))
Expand Down

0 comments on commit b4c9e2e

Please sign in to comment.