All of lore.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] maxcpus=1 does not work
@ 2001-05-16 14:15 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2001-05-16 14:15 UTC (permalink / raw)
  To: linux-ia64

Passing maxcpus=1 as boot parameter does not have the expected effect: all
cpus are still enabled.

--- arch/ia64/kernel/smp.c	2001/05/16 14:01:20	1.1
+++ arch/ia64/kernel/smp.c	2001/05/16 14:02:10
@@ -637,7 +637,7 @@
 	if (max_cpus != -1)
 		printk("Limiting CPUs to %d\n", max_cpus);
 
-	if (smp_boot_data.cpu_count > 1) {
+	if (smp_boot_data.cpu_count > 1 && cpu_count != max_cpus) {
 		printk(KERN_INFO "SMP: starting up secondaries.\n");
 
 		for (i = 0; i < smp_boot_data.cpu_count; i++) {

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


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

only message in thread, other threads:[~2001-05-16 14:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-16 14:15 [Linux-ia64] maxcpus=1 does not work Andreas Schwab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.