Viresh Kumar afa70d941f 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: 323af6deaf70 ("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
2020-01-20 08:03:39 +01:00
..
2019-09-15 21:37:13 +02:00
2019-11-20 14:16:34 +01:00
2019-11-27 11:42:01 -08:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-07-25 08:36:29 -07:00
2019-11-30 14:12:13 -08:00
2019-11-20 09:40:38 +01:00
2019-12-04 19:44:14 -08:00
2019-05-24 20:16:01 +02:00
2019-09-20 11:19:48 -07:00
2019-12-02 17:35:04 -08:00
2019-12-11 12:22:38 -08:00
2019-07-08 19:36:47 -07:00
2019-07-08 19:36:47 -07:00
2019-12-25 10:41:37 +01:00