Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69127
b: refs/heads/master
c: ff56b2f
h: refs/heads/master
i:
  69125: 2311d11
  69123: 9a8b62c
  69119: a8e7981
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Oct 15, 2007
1 parent c2ef928 commit 6e23a89
Show file tree
Hide file tree
Showing 2 changed files with 9 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: da84d96176729fb48a8458561e5d8647103168b8
refs/heads/master: ff56b2f01537aef7237d5ac8bf6bfbb409c1a127
11 changes: 8 additions & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2122,11 +2122,16 @@ static void pull_task(struct rq *src_rq, struct task_struct *p,
* Is this task likely cache-hot:
*/
static inline int
task_hot(struct task_struct *p, unsigned long long now, struct sched_domain *sd)
task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
{
s64 delta = now - p->se.exec_start;
s64 delta;

return delta < (long long)sysctl_sched_migration_cost;
if (p->sched_class != &fair_sched_class)
return 0;

delta = now - p->se.exec_start;

return delta < (s64)sysctl_sched_migration_cost;
}

/*
Expand Down

0 comments on commit 6e23a89

Please sign in to comment.