Commit 89a55f56 authored by Mel Gorman's avatar Mel Gorman Committed by Ingo Molnar

sched/fair: Remove unnecessary parameters from wake_affine_idle()

wake_affine_idle() takes parameters it never uses so clean it up.
Signed-off-by: default avatarMel Gorman <mgorman@techsingularity.net>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180130104555.4125-2-mgorman@techsingularity.netSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent e7ad2031
...@@ -5692,10 +5692,8 @@ static int wake_wide(struct task_struct *p) ...@@ -5692,10 +5692,8 @@ static int wake_wide(struct task_struct *p)
* scheduling latency of the CPUs. This seems to work * scheduling latency of the CPUs. This seems to work
* for the overloaded case. * for the overloaded case.
*/ */
static bool static bool
wake_affine_idle(struct sched_domain *sd, struct task_struct *p, wake_affine_idle(int this_cpu, int prev_cpu, int sync)
int this_cpu, int prev_cpu, int sync)
{ {
/* /*
* If this_cpu is idle, it implies the wakeup is from interrupt * If this_cpu is idle, it implies the wakeup is from interrupt
...@@ -5752,8 +5750,8 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p, ...@@ -5752,8 +5750,8 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p,
int this_cpu = smp_processor_id(); int this_cpu = smp_processor_id();
bool affine = false; bool affine = false;
if (sched_feat(WA_IDLE) && !affine) if (sched_feat(WA_IDLE))
affine = wake_affine_idle(sd, p, this_cpu, prev_cpu, sync); affine = wake_affine_idle(this_cpu, prev_cpu, sync);
if (sched_feat(WA_WEIGHT) && !affine) if (sched_feat(WA_WEIGHT) && !affine)
affine = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync); affine = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync);
......
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