Skip to contentSkip to conversation

max_cpus overflow.

PATCH New [email protected] 1 participant 1 message Oct 26, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 max_cpus overflow.

Without the below patch, my HT 2-way prints out "CPUS Done 4294967295" on boot, which whilst amusing is somewhat exaggerated.

init/main.c +1 -1
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/init/main.c linux-2.5/init/main.c
@@ -100,7 +100,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