linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jay Lan <jlan@sgi.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-mm@kvack.org
Subject: [patch] Add support for more than 256 zones
Date: Wed, 13 Aug 2003 13:23:34 -0700	[thread overview]
Message-ID: <3F3A9E46.6010803@sgi.com> (raw)

This patch is to support more than 256 zones for large systems.
The changes is to add #ifdef CONFIG_IA64 to mm.h to give different
#define to ZONE_SHIFT.

Thanks,
  - jay lan


diff -urN a-2.5.75/include/linux/mm.h b-2.5.75/include/linux/mm.h
--- a-2.5.75/include/linux/mm.h     Thu Jul 10 13:04:45 2003
+++ b-2.5.75/include/linux/mm.h     Tue Aug 12 17:20:22 2003
@@ -323,7 +323,11 @@
   * sets it, so none of the operations on it need to be atomic.
   */
  #define NODE_SHIFT 4
+#ifdef CONFIG_IA64
+#define ZONE_SHIFT (BITS_PER_LONG - 10)
+#else
  #define ZONE_SHIFT (BITS_PER_LONG - 8)
+#endif

  struct zone;
  extern struct zone *zone_table[];



For patch to 2.4.21:

diff -urN a-2.4.21/include/linux/mm.h b-2.4.21/include/linux/mm.h
--- a-2.4.21/include/linux/mm.h     Fri Jun 13 07:51:38 2003
+++ b-2.4.21/include/linux/mm.h     Tue Aug 12 17:19:27 2003
@@ -321,7 +321,11 @@
   * sets it, so none of the operations on it need to be atomic.
   */
  #define NODE_SHIFT 4
+#ifdef CONFIG_IA64
+#define ZONE_SHIFT (BITS_PER_LONG - 10)
+#else
  #define ZONE_SHIFT (BITS_PER_LONG - 8)
+#endif

  struct zone_struct;
  extern struct zone_struct *zone_table[];

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

             reply	other threads:[~2003-08-13 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-13 20:23 Jay Lan [this message]
2003-08-13 20:55 ` Andrew Morton
2003-08-13 21:50   ` Martin J. Bligh

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=3F3A9E46.6010803@sgi.com \
    --to=jlan@sgi.com \
    --cc=akpm@osdl.org \
    --cc=linux-mm@kvack.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