> OK. What I'll do is:
>
> #ifdef CONFIG_SMP
> #define NR_CPUS CONFIG_NR_CPUS
> #else
> #define NR_CPUS 1
> #endif
>
> and then go edit every SMP-capable arch's config.in/Config.help
> files. But the arch maintainers should test one case please - x86
> was locking up at boot on quad CPU with NR_CPUS=2. Others may do
> the same.
well, what you need to do is make sure smp_num_cpu <= NR_CPUS,
otherwise the kernel will go ballistic on several places within
the code.
- at least in the network system there is the assumption, that
NR_CPUS is the upper limit of cpus. after initialization, everything
uses smp_num_cpus, which is a nice thing for cpu-hotplugging :)
tm
-- in some way i do, and in some way i don't.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/