From: Jack Steiner <steiner@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] - Increase max SSI size
Date: Thu, 12 Apr 2007 18:39:01 +0000 [thread overview]
Message-ID: <20070412183901.GA15854@sgi.com> (raw)
In-Reply-To: <20070412175819.GA9723@sgi.com>
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>
---
With bug fix that Tony found....
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 13:37:05.855795475 -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,10 +69,11 @@ 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);
if (!sysfs_cpus)
panic("kzalloc in topology_init failed - NR_CPUS too big?");
+ memset(sysfs_cpus, 0, sizeof(sizeof(struct ia64_cpu) * NR_CPUS));
for_each_present_cpu(i) {
if((err = arch_register_cpu(i)))
goto out;
next prev parent reply other threads:[~2007-04-12 18:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-05-16 21:40 ` FW: " Robin Holt
2007-05-16 22:18 ` Luck, Tony
2007-05-16 22:20 ` Robin Holt
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=20070412183901.GA15854@sgi.com \
--to=steiner@sgi.com \
--cc=linux-ia64@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