Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73405
b: refs/heads/master
c: 77d9cc4
h: refs/heads/master
i:
  73403: 05e05b2
v: v3
  • Loading branch information
Ingo Molnar committed Nov 9, 2007
1 parent fad20d4 commit f29c9e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 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: 8bc6767acb3236e0345e99cf198168e60e7ae456
refs/heads/master: 77d9cc44b543fa831169e54c495ad06ef3a0c726
25 changes: 13 additions & 12 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,20 +852,21 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
if (unlikely(p->policy == SCHED_BATCH))
return;

if (sched_feat(WAKEUP_PREEMPT)) {
while (!is_same_group(se, pse)) {
se = parent_entity(se);
pse = parent_entity(pse);
}

delta = se->vruntime - pse->vruntime;
gran = sysctl_sched_wakeup_granularity;
if (unlikely(se->load.weight != NICE_0_LOAD))
gran = calc_delta_fair(gran, &se->load);
if (!sched_feat(WAKEUP_PREEMPT))
return;

if (delta > gran)
resched_task(curr);
while (!is_same_group(se, pse)) {
se = parent_entity(se);
pse = parent_entity(pse);
}

delta = se->vruntime - pse->vruntime;
gran = sysctl_sched_wakeup_granularity;
if (unlikely(se->load.weight != NICE_0_LOAD))
gran = calc_delta_fair(gran, &se->load);

if (delta > gran)
resched_task(curr);
}

static struct task_struct *pick_next_task_fair(struct rq *rq)
Expand Down

0 comments on commit f29c9e1

Please sign in to comment.