From 88e795c36533d2e4250b3e1d13fd6ba170ca59cc Mon Sep 17 00:00:00 2001 From: Mel Gorman Date: Tue, 30 Jan 2018 10:45:52 +0000 Subject: [PATCH] sched/fair: Remove unnecessary parameters from wake_affine_idle() wake_affine_idle() takes parameters it never uses so clean it up. Link: http://lkml.kernel.org/r/20180130104555.4125-2-mgorman@techsingularity.net Change-Id: I3093bc72dac98eac3e4a6afa131f2e806493c0ee Cc: Linus Torvalds Cc: Matt Fleming Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Mel Gorman Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Signed-off-by: Adam W. Willis Signed-off-by: Yaroslav Furman Signed-off-by: Richard Raya --- kernel/sched/fair.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e3981de536ab..3be33f6b3d76 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6750,8 +6750,7 @@ static int wake_wide(struct task_struct *p, int sibling_count_hint) */ static bool -wake_affine_idle(struct sched_domain *sd, struct task_struct *p, - int this_cpu, int prev_cpu, int sync) +wake_affine_idle(int this_cpu, int prev_cpu, int sync) { if (idle_cpu(this_cpu)) return true; @@ -6802,8 +6801,8 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p, int this_cpu = smp_processor_id(); bool affine = false; - if (sched_feat(WA_IDLE) && !affine) - affine = wake_affine_idle(sd, p, this_cpu, prev_cpu, sync); + if (sched_feat(WA_IDLE)) + affine = wake_affine_idle(this_cpu, prev_cpu, sync); if (sched_feat(WA_WEIGHT) && !affine) affine = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync);