]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Define sched_idle_cpu() only for SMP configurations
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 20 Jan 2020 05:59:05 +0000 (11:29 +0530)
committerIngo Molnar <mingo@kernel.org>
Mon, 20 Jan 2020 07:03:39 +0000 (08:03 +0100)
commit04983cb33362e838b657da21e458885f1f3d26f7
treed1b31b36ae61f7143fb85c0a377bd33d474eb2ef
parent5ed8fbb56144bcf000a0efc83735b1a8b182b743
sched/fair: Define sched_idle_cpu() only for SMP configurations

sched_idle_cpu() isn't used for non SMP configuration and with a recent
change, we have started getting following warning:

  kernel/sched/fair.c:5221:12: warning: ‘sched_idle_cpu’ defined but not used [-Wunused-function]

Fix that by defining sched_idle_cpu() only for SMP configurations.

Fixes: 3608a687706c ("sched/fair: Load balance aggressively for SCHED_IDLE CPUs")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lore.kernel.org/r/f0554f590687478b33914a4aff9f0e6a62886d44.1579499907.git.viresh.kumar@linaro.org
kernel/sched/fair.c