]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sched, numa, mm, arch: Add variable locality exception
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sun, 11 Nov 2012 14:09:59 +0000 (15:09 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 19 Nov 2012 02:31:53 +0000 (03:31 +0100)
Some architectures (ab)use NUMA to represent different memory
regions all cpu-local but of different latencies, such as SuperH.

The naming comes from Mel Gorman.

Named-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/sh/mm/Kconfig
init/Kconfig

index cb8f9920f4dd873b69050e81c4a46fc7e40f5007..5d2a4df179e988f9172d173e47693b9ec549f8f9 100644 (file)
@@ -111,6 +111,7 @@ config VSYSCALL
 config NUMA
        bool "Non Uniform Memory Access (NUMA) Support"
        depends on MMU && SYS_SUPPORTS_NUMA && EXPERIMENTAL
+       select ARCH_WANTS_NUMA_VARIABLE_LOCALITY
        default n
        help
          Some SH systems have many various memories scattered around
index f36c83d2e8ea46bc18a00e1289ba24595e4eee03..b8a4a5822cf46186c80e8abf2637128420de851c 100644 (file)
@@ -718,6 +718,13 @@ config ARCH_USES_NUMA_GENERIC_PGPROT_HUGEPAGE
        depends on ARCH_USES_NUMA_GENERIC_PGPROT
        depends on TRANSPARENT_HUGEPAGE
 
+#
+# For architectures that (ab)use NUMA to represent different memory regions
+# all cpu-local but of different latencies, such as SuperH.
+#
+config ARCH_WANTS_NUMA_VARIABLE_LOCALITY
+       bool
+
 menuconfig CGROUPS
        boolean "Control Group support"
        depends on EVENTFD