Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178027
b: refs/heads/master
c: e6c8fba
h: refs/heads/master
i:
  178025: e1f76c2
  178023: 48093d7
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 16, 2009
1 parent 66599c8 commit ee6bb71
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9ee349ad6d326df3633d43f54202427295999c47
refs/heads/master: e6c8fba7771563b2f3dfb96a78f36ec17e15bdf0
6 changes: 3 additions & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2046,6 +2046,9 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
{
s64 delta;

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

/*
* Buddy candidates are cache hot:
*/
Expand All @@ -2054,9 +2057,6 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
&p->se == cfs_rq_of(&p->se)->last))
return 1;

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

if (sysctl_sched_migration_cost == -1)
return 1;
if (sysctl_sched_migration_cost == 0)
Expand Down

0 comments on commit ee6bb71

Please sign in to comment.