aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/cpu.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-12-31 21:08:48 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-03 13:15:41 -0500
commit8fd2d2d5aaf086cfa3b2e2e58cab96b7afdc9e51 (patch)
tree769492a15566e8c5ec4d7f611af378aee3d1e08f /drivers/base/cpu.c
parent80855f7361eb68205e6bc1981928629d9b02d5c9 (diff)
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>
Diffstat (limited to 'drivers/base/cpu.c')
-rw-r--r--drivers/base/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 2aef96f20b30..719ee5c1c8d9 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -133,7 +133,7 @@ print_cpus_func(present);
133 */ 133 */
134static ssize_t print_cpus_kernel_max(struct sysdev_class *class, char *buf) 134static 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 return n; 137 return n;
138} 138}
139static SYSDEV_CLASS_ATTR(kernel_max, 0444, print_cpus_kernel_max, NULL); 139static SYSDEV_CLASS_ATTR(kernel_max, 0444, print_cpus_kernel_max, NULL);