diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/fair.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 539760ef00c4..bf8ab4f5e603 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
| @@ -3921,20 +3921,17 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env) | |||
| 3921 | tsk_cache_hot = task_hot(p, env->src_rq->clock_task, env->sd); | 3921 | tsk_cache_hot = task_hot(p, env->src_rq->clock_task, env->sd); |
| 3922 | if (!tsk_cache_hot || | 3922 | if (!tsk_cache_hot || |
| 3923 | env->sd->nr_balance_failed > env->sd->cache_nice_tries) { | 3923 | env->sd->nr_balance_failed > env->sd->cache_nice_tries) { |
| 3924 | #ifdef CONFIG_SCHEDSTATS | 3924 | |
| 3925 | if (tsk_cache_hot) { | 3925 | if (tsk_cache_hot) { |
| 3926 | schedstat_inc(env->sd, lb_hot_gained[env->idle]); | 3926 | schedstat_inc(env->sd, lb_hot_gained[env->idle]); |
| 3927 | schedstat_inc(p, se.statistics.nr_forced_migrations); | 3927 | schedstat_inc(p, se.statistics.nr_forced_migrations); |
| 3928 | } | 3928 | } |
| 3929 | #endif | 3929 | |
| 3930 | return 1; | 3930 | return 1; |
| 3931 | } | 3931 | } |
| 3932 | 3932 | ||
| 3933 | if (tsk_cache_hot) { | 3933 | schedstat_inc(p, se.statistics.nr_failed_migrations_hot); |
| 3934 | schedstat_inc(p, se.statistics.nr_failed_migrations_hot); | 3934 | return 0; |
| 3935 | return 0; | ||
| 3936 | } | ||
| 3937 | return 1; | ||
| 3938 | } | 3935 | } |
| 3939 | 3936 | ||
| 3940 | /* | 3937 | /* |
