Commit 6037dd1a authored by Alex Shi's avatar Alex Shi Committed by Ingo Molnar

sched: Clean up the task_hot() function

task_hot() doesn't need the 'sched_domain' parameter, so remove it.
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1394607111-1904-1-git-send-email-alex.shi@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent a2cd4260
...@@ -5037,7 +5037,7 @@ static void move_task(struct task_struct *p, struct lb_env *env) ...@@ -5037,7 +5037,7 @@ static void move_task(struct task_struct *p, struct lb_env *env)
* Is this task likely cache-hot: * Is this task likely cache-hot:
*/ */
static int static int
task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) task_hot(struct task_struct *p, u64 now)
{ {
s64 delta; s64 delta;
...@@ -5198,7 +5198,7 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env) ...@@ -5198,7 +5198,7 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env)
* 2) task is cache cold, or * 2) task is cache cold, or
* 3) too many balance attempts have failed. * 3) too many balance attempts have failed.
*/ */
tsk_cache_hot = task_hot(p, rq_clock_task(env->src_rq), env->sd); tsk_cache_hot = task_hot(p, rq_clock_task(env->src_rq));
if (!tsk_cache_hot) if (!tsk_cache_hot)
tsk_cache_hot = migrate_degrades_locality(p, env); tsk_cache_hot = migrate_degrades_locality(p, env);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment