projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4b6755
)
sched: fix fair preempt check
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Tue, 4 Nov 2008 20:25:08 +0000
(21:25 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 5 Nov 2008 09:30:13 +0000
(10:30 +0100)
Impact: fix cross-class preemption
Inter-class wakeup preemptions should go on class order.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Mike Galbraith <efault@gmx.de>
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 6167336a23727bdcdba6f6322d5d38aa1ad58486..ebd6de8d17fdd60fa71eac840db6ffff7fb4f257 100644
(file)
--- a/
kernel/sched_fair.c
+++ b/
kernel/sched_fair.c
@@
-1329,6
+1329,9
@@
static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync)
return;
}
+ if (unlikely(p->sched_class != &fair_sched_class))
+ return;
+
if (unlikely(se == pse))
return;