mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
sched: Clean up the task_hot() function
task_hot() doesn't need the 'sched_domain' parameter, so remove it. Signed-off-by: Alex Shi <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
a2cd42601b
commit
6037dd1a49
1 changed files with 2 additions and 2 deletions
|
|
@ -5037,7 +5037,7 @@ static void move_task(struct task_struct *p, struct lb_env *env)
|
|||
* Is this task likely cache-hot:
|
||||
*/
|
||||
static int
|
||||
task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
|
||||
task_hot(struct task_struct *p, u64 now)
|
||||
{
|
||||
s64 delta;
|
||||
|
||||
|
|
@ -5198,7 +5198,7 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env)
|
|||
* 2) task is cache cold, or
|
||||
* 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)
|
||||
tsk_cache_hot = migrate_degrades_locality(p, env);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue