* [Patch:001/011] Configureable NODES_SHIFT (Generic part)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
@ 2006-03-30 2:14 ` Yasunori Goto
2006-03-30 2:44 ` Andrew Morton
2006-03-30 2:14 ` [Patch:002/011] Configureable NODES_SHIFT (for ia64) Yasunori Goto
` (9 subsequent siblings)
10 siblings, 1 reply; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is generic part.
include/asm-xxx/numnodes.h becomes not necessary.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/linux/numa.h | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
Index: pxm_ver4/include/linux/numa.h
===================================================================
--- pxm_ver4.orig/include/linux/numa.h 2005-10-28 12:03:06.000000000 +0900
+++ pxm_ver4/include/linux/numa.h 2006-03-29 19:03:55.705109954 +0900
@@ -3,11 +3,9 @@
#include <linux/config.h>
-#ifndef CONFIG_FLATMEM
-#include <asm/numnodes.h>
-#endif
-
-#ifndef NODES_SHIFT
+#ifdef CONFIG_NODES_SHIFT
+#define NODES_SHIFT CONFIG_NODES_SHIFT
+#else
#define NODES_SHIFT 0
#endif
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [Patch:001/011] Configureable NODES_SHIFT (Generic part)
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
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Morton @ 2006-03-30 2:44 UTC (permalink / raw)
To: Yasunori Goto; +Cc: linux-kernel
Yasunori Goto <y-goto@jp.fujitsu.com> wrote:
>
>
> This is generic part.
> include/asm-xxx/numnodes.h becomes not necessary.
>
One thing which we aim to do where practical is to ensure that the kernel
compiles and builds at each step of a patch series. Mainly because it is
very painful when git-bisect hits a won't-compile point.
>
> Index: pxm_ver4/include/linux/numa.h
> ===================================================================
> --- pxm_ver4.orig/include/linux/numa.h 2005-10-28 12:03:06.000000000 +0900
> +++ pxm_ver4/include/linux/numa.h 2006-03-29 19:03:55.705109954 +0900
> @@ -3,11 +3,9 @@
>
> #include <linux/config.h>
>
> -#ifndef CONFIG_FLATMEM
> -#include <asm/numnodes.h>
> -#endif
> -
> -#ifndef NODES_SHIFT
> +#ifdef CONFIG_NODES_SHIFT
> +#define NODES_SHIFT CONFIG_NODES_SHIFT
> +#else
> #define NODES_SHIFT 0
> #endif
So I think this is in fact [patch 11/11/]?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Patch:001/011] Configureable NODES_SHIFT (Generic part)
2006-03-30 2:44 ` Andrew Morton
@ 2006-03-30 2:45 ` Andrew Morton
2006-03-30 2:56 ` Yasunori Goto
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Morton @ 2006-03-30 2:45 UTC (permalink / raw)
To: y-goto, linux-kernel
Andrew Morton <akpm@osdl.org> wrote:
>
> Yasunori Goto <y-goto@jp.fujitsu.com> wrote:
> >
> >
> > This is generic part.
> > include/asm-xxx/numnodes.h becomes not necessary.
> >
>
> One thing which we aim to do where practical is to ensure that the kernel
> compiles and builds at each step of a patch series. Mainly because it is
> very painful when git-bisect hits a won't-compile point.
>
Of course the easy solution is to make it all a single patch. I'll do that.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Patch:001/011] Configureable NODES_SHIFT (Generic part)
2006-03-30 2:45 ` Andrew Morton
@ 2006-03-30 2:56 ` Yasunori Goto
0 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:56 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
> Andrew Morton <akpm@osdl.org> wrote:
> >
> > Yasunori Goto <y-goto@jp.fujitsu.com> wrote:
> > >
> > >
> > > This is generic part.
> > > include/asm-xxx/numnodes.h becomes not necessary.
> > >
> >
> > One thing which we aim to do where practical is to ensure that the kernel
> > compiles and builds at each step of a patch series. Mainly because it is
> > very painful when git-bisect hits a won't-compile point.
> >
Ah. Sorry.
I worried they should be divided or not a bit.
It might be messy at this patch set.
> Of course the easy solution is to make it all a single patch. I'll do that.
Do it please. :-)
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Patch:002/011] Configureable NODES_SHIFT (for ia64)
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:14 ` Yasunori Goto
2006-03-30 2:14 ` [Patch:003/011] Configureable NODES_SHIFT (for i386) Yasunori Goto
` (8 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for ia64.
The number of nodes can be already configured in generic ia64 and SN2 config.
But, NODES_SHIFT is defined for DIG64 and HP'S machine too.
So, I changed that all platform can be configured by CONFIG_NODES_SHIFT.
It would be simpler.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-ia64/numnodes.h | 20 --------------------
arch/ia64/Kconfig | 19 ++++++++++---------
2 files changed, 10 insertions(+), 29 deletions(-)
Index: pxm_ver4/arch/ia64/Kconfig
===================================================================
--- pxm_ver4.orig/arch/ia64/Kconfig 2006-03-29 19:18:55.461934870 +0900
+++ pxm_ver4/arch/ia64/Kconfig 2006-03-29 20:50:14.802688060 +0900
@@ -260,15 +260,6 @@ config NR_CPUS
than 64 will cause the use of a CPU mask array, causing a small
performance hit.
-config IA64_NR_NODES
- int "Maximum number of NODEs (256-1024)" if (IA64_SGI_SN2 || IA64_GENERIC)
- range 256 1024
- depends on IA64_SGI_SN2 || IA64_GENERIC
- default "256"
- help
- This option specifies the maximum number of nodes in your SSI system.
- If in doubt, use the default.
-
config HOTPLUG_CPU
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
depends on SMP && EXPERIMENTAL
@@ -352,6 +343,16 @@ config NUMA
Access). This option is for configuring high-end multiprocessor
server systems. If in doubt, say N.
+config NODES_SHIFT
+ int "Max num nodes shift(3-10)"
+ range 3 10
+ default "8"
+ depends on NEED_MULTIPLE_NODES
+ help
+ This option specifies the maximum number of nodes in your SSI system.
+ MAX_NUMNODES will be 2^(This value).
+ If in doubt, use the default.
+
# VIRTUAL_MEM_MAP and FLAT_NODE_MEM_MAP are functionally equivalent.
# VIRTUAL_MEM_MAP has been retained for historical reasons.
config VIRTUAL_MEM_MAP
Index: pxm_ver4/include/asm-ia64/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-ia64/numnodes.h 2006-03-29 19:18:55.462911432 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,20 +0,0 @@
-#ifndef _ASM_MAX_NUMNODES_H
-#define _ASM_MAX_NUMNODES_H
-
-#ifdef CONFIG_IA64_DIG
-/* Max 8 Nodes */
-# define NODES_SHIFT 3
-#elif defined(CONFIG_IA64_HP_ZX1) || defined(CONFIG_IA64_HP_ZX1_SWIOTLB)
-/* Max 32 Nodes */
-# define NODES_SHIFT 5
-#elif defined(CONFIG_IA64_SGI_SN2) || defined(CONFIG_IA64_GENERIC)
-# if CONFIG_IA64_NR_NODES == 256
-# define NODES_SHIFT 8
-# elif CONFIG_IA64_NR_NODES <= 512
-# define NODES_SHIFT 9
-# elif CONFIG_IA64_NR_NODES <= 1024
-# define NODES_SHIFT 10
-# endif
-#endif
-
-#endif /* _ASM_MAX_NUMNODES_H */
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:003/011] Configureable NODES_SHIFT (for i386)
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:14 ` [Patch:002/011] Configureable NODES_SHIFT (for ia64) Yasunori Goto
@ 2006-03-30 2:14 ` Yasunori Goto
2006-03-30 2:15 ` [Patch:004/011] Configureable NODES_SHIFT (for x86-64) Yasunori Goto
` (7 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for i386.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-i386/numnodes.h | 18 ------------------
arch/i386/Kconfig | 6 ++++++
2 files changed, 6 insertions(+), 18 deletions(-)
Index: pxm_ver4/include/asm-i386/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-i386/numnodes.h 2006-03-29 20:19:32.024390322 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
-#ifndef _ASM_MAX_NUMNODES_H
-#define _ASM_MAX_NUMNODES_H
-
-#include <linux/config.h>
-
-#ifdef CONFIG_X86_NUMAQ
-
-/* Max 16 Nodes */
-#define NODES_SHIFT 4
-
-#elif defined(CONFIG_ACPI_SRAT)
-
-/* Max 8 Nodes */
-#define NODES_SHIFT 3
-
-#endif /* CONFIG_X86_NUMAQ */
-
-#endif /* _ASM_MAX_NUMNODES_H */
Index: pxm_ver4/arch/i386/Kconfig
===================================================================
--- pxm_ver4.orig/arch/i386/Kconfig 2006-03-29 20:19:32.025366884 +0900
+++ pxm_ver4/arch/i386/Kconfig 2006-03-29 20:28:03.707977804 +0900
@@ -522,6 +522,12 @@ config NUMA
comment "NUMA (Summit) requires SMP, 64GB highmem support, ACPI"
depends on X86_SUMMIT && (!HIGHMEM64G || !ACPI)
+config NODES_SHIFT
+ int
+ default "4" if X86_NUMAQ
+ default "3"
+ depends on NEED_MULTIPLE_NODES
+
config HAVE_ARCH_BOOTMEM_NODE
bool
depends on NUMA
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:004/011] Configureable NODES_SHIFT (for x86-64)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (2 preceding siblings ...)
2006-03-30 2:14 ` [Patch:003/011] Configureable NODES_SHIFT (for i386) Yasunori Goto
@ 2006-03-30 2:15 ` Yasunori Goto
2006-03-30 2:15 ` [Patch:005/011] Configureable NODES_SHIFT (for powerpc) Yasunori Goto
` (6 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for x86-64.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-x86_64/numnodes.h | 12 ------------
arch/x86_64/Kconfig | 5 +++++
include/asm-x86_64/numa.h | 1 -
3 files changed, 5 insertions(+), 13 deletions(-)
Index: pxm_ver4/arch/x86_64/Kconfig
===================================================================
--- pxm_ver4.orig/arch/x86_64/Kconfig 2006-03-29 20:46:08.596636389 +0900
+++ pxm_ver4/arch/x86_64/Kconfig 2006-03-29 20:50:37.943312777 +0900
@@ -283,6 +283,11 @@ config K8_NUMA
Northbridge of Opteron. It is recommended to use X86_64_ACPI_NUMA
instead, which also takes priority if both are compiled in.
+config NODES_SHIFT
+ int
+ default "6"
+ depends on NEED_MULTIPLE_NODES
+
# Dummy CONFIG option to select ACPI_NUMA from drivers/acpi/Kconfig.
config X86_64_ACPI_NUMA
Index: pxm_ver4/include/asm-x86_64/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-x86_64/numnodes.h 2006-03-29 20:46:08.597612951 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,12 +0,0 @@
-#ifndef _ASM_X8664_NUMNODES_H
-#define _ASM_X8664_NUMNODES_H 1
-
-#include <linux/config.h>
-
-#ifdef CONFIG_NUMA
-#define NODES_SHIFT 6
-#else
-#define NODES_SHIFT 0
-#endif
-
-#endif
Index: pxm_ver4/include/asm-x86_64/numa.h
===================================================================
--- pxm_ver4.orig/include/asm-x86_64/numa.h 2006-03-29 21:11:59.431578329 +0900
+++ pxm_ver4/include/asm-x86_64/numa.h 2006-03-29 21:12:21.884703054 +0900
@@ -2,7 +2,6 @@
#define _ASM_X8664_NUMA_H 1
#include <linux/nodemask.h>
-#include <asm/numnodes.h>
struct bootnode {
u64 start,end;
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:005/011] Configureable NODES_SHIFT (for powerpc)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (3 preceding siblings ...)
2006-03-30 2:15 ` [Patch:004/011] Configureable NODES_SHIFT (for x86-64) Yasunori Goto
@ 2006-03-30 2:15 ` Yasunori Goto
2006-03-30 2:15 ` [Patch:006/011] Configureable NODES_SHIFT (for alpha) Yasunori Goto
` (5 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for powerpc.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-powerpc/numnodes.h | 9 ---------
arch/powerpc/Kconfig | 5 +++++
2 files changed, 5 insertions(+), 9 deletions(-)
Index: pxm_ver4/arch/powerpc/Kconfig
===================================================================
--- pxm_ver4.orig/arch/powerpc/Kconfig 2006-03-29 20:14:38.355448607 +0900
+++ pxm_ver4/arch/powerpc/Kconfig 2006-03-29 20:33:19.268520813 +0900
@@ -649,6 +649,11 @@ config NUMA
depends on PPC64
default y if SMP && PPC_PSERIES
+config NODES_SHIFT
+ int
+ default "4"
+ depens on NEED_MULTIPLE_NODES
+
config ARCH_SELECT_MEMORY_MODEL
def_bool y
depends on PPC64
Index: pxm_ver4/include/asm-powerpc/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-powerpc/numnodes.h 2006-03-29 20:14:38.355448607 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,9 +0,0 @@
-#ifndef _ASM_POWERPC_MAX_NUMNODES_H
-#define _ASM_POWERPC_MAX_NUMNODES_H
-#ifdef __KERNEL__
-
-/* Max 16 Nodes */
-#define NODES_SHIFT 4
-
-#endif /* __KERNEL__ */
-#endif /* _ASM_POWERPC_MAX_NUMNODES_H */
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:006/011] Configureable NODES_SHIFT (for alpha)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (4 preceding siblings ...)
2006-03-30 2:15 ` [Patch:005/011] Configureable NODES_SHIFT (for powerpc) Yasunori Goto
@ 2006-03-30 2:15 ` Yasunori Goto
2006-03-30 2:15 ` [Patch:007/011] Configureable NODES_SHIFT (for parisc) Yasunori Goto
` (4 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for alpha.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-alpha/numnodes.h | 7 -------
arch/alpha/Kconfig | 5 +++++
2 files changed, 5 insertions(+), 7 deletions(-)
Index: pxm_ver4/arch/alpha/Kconfig
===================================================================
--- pxm_ver4.orig/arch/alpha/Kconfig 2006-03-29 16:43:16.406385211 +0900
+++ pxm_ver4/arch/alpha/Kconfig 2006-03-29 20:02:16.541004569 +0900
@@ -549,6 +549,11 @@ config NUMA
Access). This option is for configuring high-end multiprocessor
server machines. If in doubt, say N.
+config NODES_SHIFT
+ int
+ default "7"
+ depends on NEED_MULTIPLE_NODES
+
# LARGE_VMALLOC is racy, if you *really* need it then fix it first
config ALPHA_LARGE_VMALLOC
bool
Index: pxm_ver4/include/asm-alpha/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-alpha/numnodes.h 2006-03-29 16:43:16.406385211 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,7 +0,0 @@
-#ifndef _ASM_MAX_NUMNODES_H
-#define _ASM_MAX_NUMNODES_H
-
-/* Max 128 Nodes - Marvel */
-#define NODES_SHIFT 7
-
-#endif /* _ASM_MAX_NUMNODES_H */
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:007/011] Configureable NODES_SHIFT (for parisc)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (5 preceding siblings ...)
2006-03-30 2:15 ` [Patch:006/011] Configureable NODES_SHIFT (for alpha) Yasunori Goto
@ 2006-03-30 2:15 ` Yasunori Goto
2006-03-30 2:15 ` [Patch:008/011] Configureable NODES_SHIFT (for arm) Yasunori Goto
` (3 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for parisc.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-parisc/numnodes.h | 7 -------
arch/parisc/Kconfig | 5 +++++
2 files changed, 5 insertions(+), 7 deletions(-)
Index: pxm_ver4/arch/parisc/Kconfig
===================================================================
--- pxm_ver4.orig/arch/parisc/Kconfig 2006-03-29 20:13:18.144512090 +0900
+++ pxm_ver4/arch/parisc/Kconfig 2006-03-29 20:34:27.982387159 +0900
@@ -177,6 +177,11 @@ config ARCH_DISCONTIGMEM_DEFAULT
def_bool y
depends on ARCH_DISCONTIGMEM_ENABLE
+config NODES_SHIFT
+ int
+ default "3"
+ depens on NEED_MULTIPLE_NODES
+
source "kernel/Kconfig.hz"
source "mm/Kconfig"
Index: pxm_ver4/include/asm-parisc/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-parisc/numnodes.h 2006-03-29 20:13:18.144512090 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,7 +0,0 @@
-#ifndef _ASM_MAX_NUMNODES_H
-#define _ASM_MAX_NUMNODES_H
-
-/* Max 8 Nodes */
-#define NODES_SHIFT 3
-
-#endif /* _ASM_MAX_NUMNODES_H */
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:008/011] Configureable NODES_SHIFT (for arm)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (6 preceding siblings ...)
2006-03-30 2:15 ` [Patch:007/011] Configureable NODES_SHIFT (for parisc) Yasunori Goto
@ 2006-03-30 2:15 ` Yasunori Goto
2006-03-30 2:16 ` [Patch:009/011] Configureable NODES_SHIFT (for m32r) Yasunori Goto
` (2 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
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
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:009/011] Configureable NODES_SHIFT (for m32r)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (7 preceding siblings ...)
2006-03-30 2:15 ` [Patch:008/011] Configureable NODES_SHIFT (for arm) Yasunori Goto
@ 2006-03-30 2:16 ` 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
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is to m32r.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-m32r/numnodes.h | 15 ---------------
arch/m32r/Kconfig | 5 +++++
2 files changed, 5 insertions(+), 15 deletions(-)
Index: pxm_ver4/arch/m32r/Kconfig
===================================================================
--- pxm_ver4.orig/arch/m32r/Kconfig 2006-03-29 16:43:15.437635223 +0900
+++ pxm_ver4/arch/m32r/Kconfig 2006-03-29 20:07:58.554672254 +0900
@@ -285,6 +285,11 @@ config NUMA
depends on SMP && BROKEN
default n
+config NODES_SHIFT
+ int
+ default "1"
+ depends on NEED_MULTIPLE_NODES
+
# turning this on wastes a bunch of space.
# Summit needs it only when NUMA is on
config BOOT_IOREMAP
Index: pxm_ver4/include/asm-m32r/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-m32r/numnodes.h 2006-03-29 16:43:15.437635223 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,15 +0,0 @@
-#ifndef _ASM_NUMNODES_H_
-#define _ASM_NUMNODES_H_
-
-#include <linux/config.h>
-
-#ifdef CONFIG_DISCONTIGMEM
-
-#if defined(CONFIG_CHIP_M32700)
-#define NODES_SHIFT 1 /* Max 2 Nodes */
-#endif /* CONFIG_CHIP_M32700 */
-
-#endif /* CONFIG_DISCONTIGMEM */
-
-#endif /* _ASM_NUMNODES_H_ */
-
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:010/011] Configureable NODES_SHIFT (for mips)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (8 preceding siblings ...)
2006-03-30 2:16 ` [Patch:009/011] Configureable NODES_SHIFT (for m32r) Yasunori Goto
@ 2006-03-30 2:16 ` Yasunori Goto
2006-03-30 2:16 ` [Patch:011/011] Configureable NODES_SHIFT (for sh) Yasunori Goto
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for mips.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-mips/numnodes.h | 7 -------
arch/mips/Kconfig | 5 +++++
2 files changed, 5 insertions(+), 7 deletions(-)
Index: pxm_ver4/arch/mips/Kconfig
===================================================================
--- pxm_ver4.orig/arch/mips/Kconfig 2006-03-29 20:12:35.968731356 +0900
+++ pxm_ver4/arch/mips/Kconfig 2006-03-29 20:36:20.998987337 +0900
@@ -1587,6 +1587,11 @@ config ARCH_FLATMEM_ENABLE
def_bool y
depends on !NUMA
+config NODES_SHIFT
+ int
+ default "6"
+ depends on NEED_MULTIPLE_NODES
+
source "mm/Kconfig"
config SMP
Index: pxm_ver4/include/asm-mips/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-mips/numnodes.h 2006-03-29 20:12:35.968731356 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,7 +0,0 @@
-#ifndef _ASM_MAX_NUMNODES_H
-#define _ASM_MAX_NUMNODES_H
-
-/* Max 128 Nodes */
-#define NODES_SHIFT 6
-
-#endif /* _ASM_MAX_NUMNODES_H */
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread* [Patch:011/011] Configureable NODES_SHIFT (for sh)
2006-03-30 2:02 [Patch:000/011] Configureable NODES_SHIFT Yasunori Goto
` (9 preceding siblings ...)
2006-03-30 2:16 ` [Patch:010/011] Configureable NODES_SHIFT (for mips) Yasunori Goto
@ 2006-03-30 2:16 ` Yasunori Goto
10 siblings, 0 replies; 15+ messages in thread
From: Yasunori Goto @ 2006-03-30 2:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel ML
This is for sh.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
include/asm-sh/numnodes.h | 7 -------
arch/sh/Kconfig | 5 +++++
2 files changed, 5 insertions(+), 7 deletions(-)
Index: pxm_ver4/arch/sh/Kconfig
===================================================================
--- pxm_ver4.orig/arch/sh/Kconfig 2006-03-29 20:12:33.810528258 +0900
+++ pxm_ver4/arch/sh/Kconfig 2006-03-29 20:38:51.580040180 +0900
@@ -527,6 +527,11 @@ config CPU_HAS_SR_RB
See <file:Documentation/sh/register-banks.txt> for further
information on SR.RB and register banking in the kernel in general.
+config NODES_SHIFT
+ int
+ default "1"
+ depends on NEED_MULTIPLE_NODES
+
endmenu
menu "Boot options"
Index: pxm_ver4/include/asm-sh/numnodes.h
===================================================================
--- pxm_ver4.orig/include/asm-sh/numnodes.h 2006-03-29 20:12:33.810528258 +0900
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,7 +0,0 @@
-#ifndef _ASM_MAX_NUMNODES_H
-#define _ASM_MAX_NUMNODES_H
-
-/* Max 2 Nodes */
-#define NODES_SHIFT 1
-
-#endif /* _ASM_MAX_NUMNODES_H */
--
Yasunori Goto
^ permalink raw reply [flat|nested] 15+ messages in thread