Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64727
b: refs/heads/master
c: 4a55b45
h: refs/heads/master
i:
  64725: 17c229f
  64723: 4cc67df
  64719: 59a842b
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Sep 5, 2007
1 parent d92682d commit 6177017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 7c92e54f6f9601cfa9d8894ee248abcf62ed9a1c
refs/heads/master: 4a55b45036a677fac43fe81ddf7fdcd007aaaee7
5 changes: 2 additions & 3 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,8 @@ __check_preempt_curr_fair(struct cfs_rq *cfs_rq, struct sched_entity *se,
* preempt the current task unless the best task has
* a larger than sched_granularity fairness advantage:
*/
if (__delta > niced_granularity(curr, granularity)) {
if (__delta > niced_granularity(curr, granularity))
resched_task(rq_of(cfs_rq)->curr);
curr->prev_sum_exec_runtime = curr->sum_exec_runtime;
}
}

static inline void
Expand All @@ -703,6 +701,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
update_stats_wait_end(cfs_rq, se);
update_stats_curr_start(cfs_rq, se);
set_cfs_rq_curr(cfs_rq, se);
se->prev_sum_exec_runtime = se->sum_exec_runtime;
}

static struct sched_entity *pick_next_entity(struct cfs_rq *cfs_rq)
Expand Down

0 comments on commit 6177017

Please sign in to comment.