Re: [PATCH v2 1/5] smp: don't declare nr_cpu_ids if NR_CPUS == 1

From: Peter Zijlstra
Date: Tue Sep 06 2022 - 04:54:22 EST


On Mon, Sep 05, 2022 at 04:08:16PM -0700, Yury Norov wrote:
> SMP and NR_CPUS are independent options, hence nr_cpu_ids may be
> declared even if NR_CPUS == 1, which is useless.

I'm thikning you're fixing the wrong problem here. Also who the heck
cares about SMP=y NR_CPUS=1 anyway?

Why do we need extra source complexity for this?