summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/numa.h
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2020-11-18 16:38:29 -0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-01-14 15:08:58 -0800
commit4f0e8eef772ee4438f304b2178bc28c958b6c13d (patch)
treef793c5f7bbfdf6b9546db49bb98563ec212d504d /arch/riscv/include/asm/numa.h
parent3e5b0bdb2a4dd8c09a9db01b1ead3f69cabd0c67 (diff)
downloadlinux-stable-4f0e8eef772ee4438f304b2178bc28c958b6c13d.tar.gz
linux-stable-4f0e8eef772ee4438f304b2178bc28c958b6c13d.tar.bz2
linux-stable-4f0e8eef772ee4438f304b2178bc28c958b6c13d.zip
riscv: Add numa support for riscv64 platform
Use the generic numa implementation to add NUMA support for RISC-V. This is based on Greentime's patch[1] but modified to use generic NUMA implementation and few more fixes. [1] https://lkml.org/lkml/2020/1/10/233 Co-developed-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm/numa.h')
-rw-r--r--arch/riscv/include/asm/numa.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/numa.h b/arch/riscv/include/asm/numa.h
new file mode 100644
index 000000000000..8c8cf4297cc3
--- /dev/null
+++ b/arch/riscv/include/asm/numa.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_NUMA_H
+#define __ASM_NUMA_H
+
+#include <asm/topology.h>
+#include <asm-generic/numa.h>
+
+#endif /* __ASM_NUMA_H */