summaryrefslogtreecommitdiffstats
path: root/arch/s390/numa/numa_mode.h
diff options
context:
space:
mode:
authorPhilipp Hachtmann <phacht@linux.vnet.ibm.com>2014-03-06 18:25:13 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-08-03 18:40:25 +0200
commit3a368f742da13955bed4a2efed85ed7c1d826bcc (patch)
tree399d0b43b174206b1bb6418619d013528d4b28d4 /arch/s390/numa/numa_mode.h
parent199071f108f5641badc2a6970e1fa7ec469d5d12 (diff)
downloadop-kernel-dev-3a368f742da13955bed4a2efed85ed7c1d826bcc.zip
op-kernel-dev-3a368f742da13955bed4a2efed85ed7c1d826bcc.tar.gz
s390/numa: add core infrastructure
Enable core NUMA support for s390 and add one simple default mode "plain" that creates one single NUMA node. This patch contains several changes from Michael Holzheu. Signed-off-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/numa/numa_mode.h')
-rw-r--r--arch/s390/numa/numa_mode.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/s390/numa/numa_mode.h b/arch/s390/numa/numa_mode.h
new file mode 100644
index 0000000..7756598
--- /dev/null
+++ b/arch/s390/numa/numa_mode.h
@@ -0,0 +1,23 @@
+/*
+ * NUMA support for s390
+ *
+ * Define declarations used for communication between NUMA mode
+ * implementations and NUMA core functionality.
+ *
+ * Copyright IBM Corp. 2015
+ */
+#ifndef __S390_NUMA_MODE_H
+#define __S390_NUMA_MODE_H
+
+struct numa_mode {
+ char *name; /* Name of mode */
+ void (*setup)(void); /* Initizalize mode */
+ void (*update_cpu_topology)(void); /* Called by topology code */
+ int (*__pfn_to_nid)(unsigned long pfn); /* PFN to node ID */
+ unsigned long (*align)(void); /* Minimum node alignment */
+ int (*distance)(int a, int b); /* Distance between two nodes */
+};
+
+extern const struct numa_mode numa_mode_plain;
+
+#endif /* __S390_NUMA_MODE_H */
OpenPOWER on IntegriCloud