Paul Menage wrote: > Allow cpusets to be configured/built on non-SMP systems > > Currently it's impossible to build cpusets under UML on x86-64, since > cpusets depends on SMP and x86-64 UML doesn't support SMP. > > There's code in cpusets that doesn't depend on SMP. This patch > surrounds the minimum amount of cpusets code with #ifdef CONFIG_SMP in > order to allow cpusets to build/run on UP systems (for testing > purposes under UML). > The patch is ok for this purpose. Reviewed-by: Li Zefan <lizf@xxxxxxxxxxxxxx> > Signed-off-by: Paul Menage <menage@xxxxxxxxxx> > > --- > > init/Kconfig | 2 +- > kernel/cpuset.c | 14 ++++++++++++++ > 2 files changed, 15 insertions(+), 1 deletions(-) ... > +static int generate_sched_domains(struct cpumask **domains, > + struct sched_domain_attr **attributes) > +{ Except here should "return 0;", otherwise emit a compile warining. > +} _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers