Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69124
b: refs/heads/master
c: 91c234b
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent 9a8b62c commit 2ed93c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb7dde37ece82e13de383afd7042c45df67a9d17
refs/heads/master: 91c234b4e3419c786cac2d5b7a7b96443e512e3a
6 changes: 6 additions & 0 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,12 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
resched_task(curr);
return;
}
/*
* Batch tasks do not preempt (their preemption is driven by
* the tick):
*/
if (unlikely(p->policy == SCHED_BATCH))
return;

if (sched_feat(WAKEUP_PREEMPT)) {
while (!is_same_group(se, pse)) {
Expand Down

0 comments on commit 2ed93c0

Please sign in to comment.