diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 9c30858b6463..1d8ca25dd6fb 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2046,6 +2046,9 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) | |||
2046 | { | 2046 | { |
2047 | s64 delta; | 2047 | s64 delta; |
2048 | 2048 | ||
2049 | if (p->sched_class != &fair_sched_class) | ||
2050 | return 0; | ||
2051 | |||
2049 | /* | 2052 | /* |
2050 | * Buddy candidates are cache hot: | 2053 | * Buddy candidates are cache hot: |
2051 | */ | 2054 | */ |
@@ -2054,9 +2057,6 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) | |||
2054 | &p->se == cfs_rq_of(&p->se)->last)) | 2057 | &p->se == cfs_rq_of(&p->se)->last)) |
2055 | return 1; | 2058 | return 1; |
2056 | 2059 | ||
2057 | if (p->sched_class != &fair_sched_class) | ||
2058 | return 0; | ||
2059 | |||
2060 | if (sysctl_sched_migration_cost == -1) | 2060 | if (sysctl_sched_migration_cost == -1) |
2061 | return 1; | 2061 | return 1; |
2062 | if (sysctl_sched_migration_cost == 0) | 2062 | if (sysctl_sched_migration_cost == 0) |