From: davej@codemonkey.org.uk
To: linux-kernel@vger.kernel.org
Cc: alan@redhat.com
Subject: [PATCH] max_cpus overflow.
Date: Sat, 26 Oct 2002 13:42:28 +0100 [thread overview]
Message-ID: <200210261242.g9QCgSDh030286@noodles.internal> (raw)
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
reply other threads:[~2002-10-26 12:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200210261242.g9QCgSDh030286@noodles.internal \
--to=davej@codemonkey.org.uk \
--cc=alan@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®