From: Yasunori Goto <y-goto@jp.fujitsu.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>
Subject: [Patch:008/011] Configureable NODES_SHIFT (for arm)
Date: Thu, 30 Mar 2006 11:15:55 +0900 [thread overview]
Message-ID: <20060330111009.DCB3.Y-GOTO@jp.fujitsu.com> (raw)
In-Reply-To: <20060330105135.DC9F.Y-GOTO@jp.fujitsu.com>
This is form arm.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-arm/numnodes.h | 26 --------------------------
arch/arm/Kconfig | 6 ++++++
include/asm-arm/arch-lh7a40x/memory.h | 2 --
3 files changed, 6 insertions(+), 28 deletions(-)
Index: pxm_ver4/arch/arm/Kconfig
===================================================================
--- pxm_ver4.orig/arch/arm/Kconfig 2006-03-29 20:12:40.436504739 +0900
+++ pxm_ver4/arch/arm/Kconfig 2006-03-29 20:35:07.255824178 +0900
@@ -496,6 +496,12 @@ config ARCH_DISCONTIGMEM_ENABLE
or have huge holes in the physical address space for other reasons.
See <file:Documentation/vm/numa> for more.
+config NODES_SHIFT
+ int
+ default "4" if ARCH_LH7A40X
+ default "2"
+ depends on NEED_MULTIPLE_NODES
+
source "mm/Kconfig"
config LEDS
Index: pxm_ver4/include/asm-arm/arch-lh7a40x/memory.h
===================================================================
--- pxm_ver4.orig/include/asm-arm/arch-lh7a40x/memory.h 2006-03-29 20:12:40.436504739 +0900
+++ pxm_ver4/include/asm-arm/arch-lh7a40x/memory.h 2006-03-29 20:34:39.445277644 +0900
@@ -31,8 +31,6 @@
#ifdef CONFIG_DISCONTIGMEM
-#define NODES_SHIFT 4 /* Up to 16 nodes */
-
/*
* Given a kernel address, find the home node of the underlying memory.
*/
Index: pxm_ver4/include/asm-arm/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-arm/numnodes.h 2006-03-29 20:12:40.436504739 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,26 +0,0 @@
-/*
- * linux/include/asm-arm/numnodes.h
- *
- * Copyright (C) 2002 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-/* This declaration for the size of the NUMA (CONFIG_DISCONTIGMEM)
- * memory node table is the default.
- *
- * A good place to override this value is include/asm/arch/memory.h.
- */
-
-#ifndef __ASM_ARM_NUMNODES_H
-#define __ASM_ARM_NUMNODES_H
-
-#include <asm/memory.h>
-
-#ifndef NODES_SHIFT
-# define NODES_SHIFT 2 /* Normally, Max 4 Nodes */
-#endif
-
-#endif
--
Yasunori Goto
next prev parent reply other threads:[~2006-03-30 2:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
2006-03-30 2:14 ` [Patch:001/011] Configureable NODES_SHIFT (Generic part) Yasunori Goto
2006-03-30 2:44 ` Andrew Morton
2006-03-30 2:45 ` Andrew Morton
2006-03-30 2:56 ` Yasunori Goto
2006-03-30 2:14 ` [Patch:002/011] Configureable NODES_SHIFT (for ia64) Yasunori Goto
2006-03-30 2:14 ` [Patch:003/011] Configureable NODES_SHIFT (for i386) Yasunori Goto
2006-03-30 2:15 ` [Patch:004/011] Configureable NODES_SHIFT (for x86-64) Yasunori Goto
2006-03-30 2:15 ` [Patch:005/011] Configureable NODES_SHIFT (for powerpc) Yasunori Goto
2006-03-30 2:15 ` [Patch:006/011] Configureable NODES_SHIFT (for alpha) Yasunori Goto
2006-03-30 2:15 ` [Patch:007/011] Configureable NODES_SHIFT (for parisc) Yasunori Goto
2006-03-30 2:15 ` Yasunori Goto [this message]
2006-03-30 2:16 ` [Patch:009/011] Configureable NODES_SHIFT (for m32r) Yasunori Goto
2006-03-30 2:16 ` [Patch:010/011] Configureable NODES_SHIFT (for mips) Yasunori Goto
2006-03-30 2:16 ` [Patch:011/011] Configureable NODES_SHIFT (for sh) Yasunori Goto
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=20060330111009.DCB3.Y-GOTO@jp.fujitsu.com \
--to=y-goto@jp.fujitsu.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@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
Powered by JetHome