[Linux-ia64] maxcpus=1 does not work

From: Andreas Schwab <schwab_at_suse.de>
Date: 2001-05-17 00:15:37
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
Received on Wed May 16 07:15:41 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:03 EST