Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87479
b: refs/heads/master
c: f540a60
h: refs/heads/master
i:
  87477: e24cf6f
  87475: 6314105
  87471: 5fcfdbc
v: v3
  • Loading branch information
Ingo Molnar committed Mar 19, 2008
1 parent e573410 commit 1857c58
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: 4ae7d5cefd4aa3560e359a3b0f03e12adc8b5c86
refs/heads/master: f540a6080a092e2ab69fd146c308022db7347b0a
6 changes: 6 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,12 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
{
s64 delta;

/*
* Buddy candidates are cache hot:
*/
if (&p->se == cfs_rq_of(&p->se)->next)
return 1;

if (p->sched_class != &fair_sched_class)
return 0;

Expand Down

0 comments on commit 1857c58

Please sign in to comment.