aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2002-10-31 22:22:36 -0800
committerDave Jones <davej@codemonkey.org.uk>2002-10-31 22:22:36 -0800
commit758634f5a3c38f67d55a9e3838ee054e1985d28f (patch)
tree2e9ed473118957b78f83cdd71cb4e2034e1cb0cc /init
parentd1aefb8bd2e73c6c7b9b0f0c4a120723ab470e22 (diff)
downloadhistory-758634f5a3c38f67d55a9e3838ee054e1985d28f.tar.gz
[PATCH] max_cpus overflow.
Without the below patch, my HT 2-way prints out "CPUS Done 4294967295" on boot, which whilst amusing is somewhat exaggerated.
Diffstat (limited to 'init')
-rw-r--r--init/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index d75bf0acb1ebb1..7ef5e893ecb351 100644
--- a/init/main.c
+++ b/init/main.c
@@ -101,7 +101,7 @@ int rows, cols;
char *execute_command;
/* Setup configured maximum number of CPUs to activate */
-static unsigned int max_cpus = UINT_MAX;
+static unsigned int max_cpus = NR_CPUS;
/*
* Setup routine for controlling SMP activation