]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpumask: fix compile error when CONFIG_NR_CPUS is not defined
authorMike Travis <travis@sgi.com>
Thu, 1 Jan 2009 02:08:48 +0000 (18:08 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 3 Jan 2009 18:15:41 +0000 (19:15 +0100)
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>
drivers/base/cpu.c

index 2aef96f20b30d2297ce9ca45e5ee2f3c4f38efa0..719ee5c1c8d94d97bfb4841ee9e82c1f9760ffda 100644 (file)
@@ -133,7 +133,7 @@ print_cpus_func(present);
  */
 static ssize_t print_cpus_kernel_max(struct sysdev_class *class, char *buf)
 {
-       int n = snprintf(buf, PAGE_SIZE-2, "%d\n", CONFIG_NR_CPUS - 1);
+       int n = snprintf(buf, PAGE_SIZE-2, "%d\n", NR_CPUS - 1);
        return n;
 }
 static SYSDEV_CLASS_ATTR(kernel_max, 0444, print_cpus_kernel_max, NULL);