sched/cpuset: Only offer CONFIG_CPUSETS if SMP is enabled
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 14 Jun 2017 17:19:23 +0000 (13:19 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 23 Jun 2017 08:46:44 +0000 (10:46 +0200)
commite1d4eeec5aaa28d25f249c0195b0e1d9b9feb7bd
treeaef30c8669d5220465593bb4e0d06d276ce015fc
parent387bc8b5536eeb0a92f4b4ab553539eaea2ac0ba
sched/cpuset: Only offer CONFIG_CPUSETS if SMP is enabled

Make CONFIG_CPUSETS=y depend on SMP as this feature makes no sense
on UP. This allows for configuring out cpuset_cpumask_can_shrink()
and task_can_attach() entirely, which shrinks the kernel a bit.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170614171926.8345-2-nicolas.pitre@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
init/Kconfig
kernel/sched/core.c