Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

smp: don't declare nr_cpu_ids if NR_CPUS == 1

SMP and NR_CPUS are independent options, hence nr_cpu_ids may be
declared even if NR_CPUS == 1, which is useless.

Signed-off-by: Yury Norov <yury.norov@gmail.com>

+2
+2
kernel/smp.c
··· 1088 1088 1089 1089 early_param("maxcpus", maxcpus); 1090 1090 1091 + #if (NR_CPUS > 1) 1091 1092 /* Setup number of possible processor ids */ 1092 1093 unsigned int nr_cpu_ids __read_mostly = NR_CPUS; 1093 1094 EXPORT_SYMBOL(nr_cpu_ids); 1095 + #endif 1094 1096 1095 1097 /* An arch may set nr_cpu_ids earlier if needed, so this would be redundant */ 1096 1098 void __init setup_nr_cpu_ids(void)