projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3e13f
)
sched: wakeup preemption fix
author
Ingo Molnar
<mingo@elte.hu>
Fri, 9 Nov 2007 21:39:39 +0000
(22:39 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 9 Nov 2007 21:39:39 +0000
(22:39 +0100)
wakeup preemption fix: do not make it dependent on p->prio.
Preemption purely depends on ->vruntime.
This improves preemption in mixed-nice-level workloads.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched_fair.c
b/kernel/sched_fair.c
index fbcb426029d0f43bc1cd6e9ebcba637e37f11029..a3badf52bba2352e489c94bc768c9617bc4cb707 100644
(file)
--- a/
kernel/sched_fair.c
+++ b/
kernel/sched_fair.c
@@
-863,10
+863,8
@@
static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
if (unlikely(se->load.weight != NICE_0_LOAD))
gran = calc_delta_fair(gran, &se->load);
- if (delta > gran) {
- if (p->prio < curr->prio)
- resched_task(curr);
- }
+ if (delta > gran)
+ resched_task(curr);
}
}