mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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 <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> Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com> Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
623c84365b
commit
88e795c365
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user