Skip to content

Commit 1b5500d

Browse files
vireshkIngo Molnar
authored andcommitted
sched/fair: Remove unused 'sd' parameter from select_idle_smt()
The 'sd' parameter isn't getting used in select_idle_smt(), drop it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vincent Guittot <vincent.guittot@linaro.org> Link: http://lkml.kernel.org/r/f91c5e118183e79d4a982e9ac4ce5e47948f6c1b.1549536337.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 2b9c2a4 commit 1b5500d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/sched/fair.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6117,7 +6117,7 @@ static int select_idle_core(struct task_struct *p, struct sched_domain *sd, int
61176117
/*
61186118
* Scan the local SMT mask for idle CPUs.
61196119
*/
6120-
static int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target)
6120+
static int select_idle_smt(struct task_struct *p, int target)
61216121
{
61226122
int cpu;
61236123

@@ -6141,7 +6141,7 @@ static inline int select_idle_core(struct task_struct *p, struct sched_domain *s
61416141
return -1;
61426142
}
61436143

6144-
static inline int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target)
6144+
static inline int select_idle_smt(struct task_struct *p, int target)
61456145
{
61466146
return -1;
61476147
}
@@ -6246,7 +6246,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
62466246
if ((unsigned)i < nr_cpumask_bits)
62476247
return i;
62486248

6249-
i = select_idle_smt(p, sd, target);
6249+
i = select_idle_smt(p, target);
62506250
if ((unsigned)i < nr_cpumask_bits)
62516251
return i;
62526252

0 commit comments

Comments
 (0)