Re: [RFC PATCH 1/5] use nr_cpus= to set nr_cpu_ids early

From: Christoph Lameter
Date: Tue Jan 12 2010 - 15:49:27 EST

Trouble is that NR_CPUS is used all over the place. If nr_cpu_ids <
NR_CPUS at boot then there is a danger of for loops to NR_CPUS going out

CONFIG_NR_CPUS is used for various bitmaps so that seems to be

drivers/acpi/numa.c:acpi_numa_init probably should use nr_cpu_ids
instead now.

There is an octeon driver in staging that has some issues with NR_CPUS as

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at