diff options
author | Alex Shi <alex.shi@linaro.org> | 2014-03-12 02:51:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-03-12 05:49:01 -0400 |
commit | 6037dd1a49f95092824fa8ba75c717ff7805e317 (patch) | |
tree | edf172df1f3b9125ce90ecaf09ef7096900bbf9e | |
parent | a2cd42601b474b957e1a5fe3692bcf7f9363bd51 (diff) |
sched: Clean up the task_hot() function
task_hot() doesn't need the 'sched_domain' parameter, so remove it.
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1394607111-1904-1-git-send-email-alex.shi@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/sched/fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index b301918ed510..7e9bd0b1fa9e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -5037,7 +5037,7 @@ static void move_task(struct task_struct *p, struct lb_env *env) | |||
5037 | * Is this task likely cache-hot: | 5037 | * Is this task likely cache-hot: |
5038 | */ | 5038 | */ |
5039 | static int | 5039 | static int |
5040 | task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) | 5040 | task_hot(struct task_struct *p, u64 now) |
5041 | { | 5041 | { |
5042 | s64 delta; | 5042 | s64 delta; |
5043 | 5043 | ||
@@ -5198,7 +5198,7 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env) | |||
5198 | * 2) task is cache cold, or | 5198 | * 2) task is cache cold, or |
5199 | * 3) too many balance attempts have failed. | 5199 | * 3) too many balance attempts have failed. |
5200 | */ | 5200 | */ |
5201 | tsk_cache_hot = task_hot(p, rq_clock_task(env->src_rq), env->sd); | 5201 | tsk_cache_hot = task_hot(p, rq_clock_task(env->src_rq)); |
5202 | if (!tsk_cache_hot) | 5202 | if (!tsk_cache_hot) |
5203 | tsk_cache_hot = migrate_degrades_locality(p, env); | 5203 | tsk_cache_hot = migrate_degrades_locality(p, env); |
5204 | 5204 | ||