cpumask: fix compile error when CONFIG_NR_CPUS is not defined

CONFIG_NR_CPUS will be defined for all arch's whether SMP or not, but
it may not have made it into all arches yet.

Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Mike Travis and committed by
Ingo Molnar
8fd2d2d5 80855f73

+1 -1
+1 -1
drivers/base/cpu.c
··· 133 133 */ 134 134 static ssize_t print_cpus_kernel_max(struct sysdev_class *class, char *buf) 135 135 { 136 - int n = snprintf(buf, PAGE_SIZE-2, "%d\n", CONFIG_NR_CPUS - 1); 136 + int n = snprintf(buf, PAGE_SIZE-2, "%d\n", NR_CPUS - 1); 137 137 return n; 138 138 } 139 139 static SYSDEV_CLASS_ATTR(kernel_max, 0444, print_cpus_kernel_max, NULL);