public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - Increase max SSI size
@ 2007-04-12 17:58 Jack Steiner
  2007-04-12 18:06 ` Luck, Tony
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jack Steiner @ 2007-04-12 17:58 UTC (permalink / raw)
  To: linux-ia64

Increase the maximum SSI size for IA64 to 4096p. No changes are being
made to the default configuration sizes (for now).

	Signed-off-by: Jack Steiner <steiner@sgi.com>


Index: linux/arch/ia64/Kconfig
=================================--- linux.orig/arch/ia64/Kconfig	2007-04-04 16:51:42.000000000 -0500
+++ linux/arch/ia64/Kconfig	2007-04-12 07:41:44.619991642 -0500
@@ -267,8 +267,8 @@ config SMP
 	  If you don't know what to do here, say N.
 
 config NR_CPUS
-	int "Maximum number of CPUs (2-1024)"
-	range 2 1024
+	int "Maximum number of CPUs (2-4096)"
+	range 2 4096
 	depends on SMP
 	default "1024"
 	help
Index: linux/arch/ia64/kernel/topology.c
=================================--- linux.orig/arch/ia64/kernel/topology.c	2007-04-04 16:51:42.000000000 -0500
+++ linux/arch/ia64/kernel/topology.c	2007-04-12 08:08:30.526370615 -0500
@@ -21,6 +21,7 @@
 #include <linux/bootmem.h>
 #include <linux/nodemask.h>
 #include <linux/notifier.h>
+#include <linux/vmalloc.h>
 #include <asm/mmzone.h>
 #include <asm/numa.h>
 #include <asm/cpu.h>
@@ -68,7 +69,8 @@ static int __init topology_init(void)
 	}
 #endif
 
-	sysfs_cpus = kzalloc(sizeof(struct ia64_cpu) * NR_CPUS, GFP_KERNEL);
+	sysfs_cpus = vmalloc(sizeof(struct ia64_cpu) * NR_CPUS);
+	memset(sysfs_cpus, 0, sizeof(sizeof(struct ia64_cpu) * NR_CPUS));
 	if (!sysfs_cpus)
 		panic("kzalloc in topology_init failed - NR_CPUS too big?");
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-16 22:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-12 17:58 [PATCH] - Increase max SSI size Jack Steiner
2007-04-12 18:06 ` Luck, Tony
2007-04-12 18:38 ` Christoph Lameter
2007-04-12 18:39 ` Jack Steiner
2007-05-16 21:40 ` FW: " Robin Holt
2007-05-16 22:18 ` Luck, Tony
2007-05-16 22:20 ` Robin Holt

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