mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] max_cpus overflow.
@ 2002-10-26 12:42 davej
  0 siblings, 0 replies; only message in thread
From: davej @ 2002-10-26 12:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: alan

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


diff -urpN --exclude-from=/home/davej/.exclude bk-linus/init/main.c linux-2.5/init/main.c
--- bk-linus/init/main.c	2002-10-20 20:34:00.000000000 -0100
+++ linux-2.5/init/main.c	2002-10-25 15:43:43.000000000 -0100
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-26 12:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-26 12:42 [PATCH] max_cpus overflow davej

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®