diff mbox series

[2/2] arm64: numa: support numa_off_fastpath

Message ID 20210616083745.14288-2-janghyuck.kim@samsung.com (mailing list archive)
State New
Headers show
Series [1/2] mm: support fastpath if NUMA is enabled with numa off | expand

Commit Message

Janghyuck Kim June 16, 2021, 8:37 a.m. UTC
NUMA can be disabled forcefully by command line, or no configurations
are provided. numa_off_fastpath can become true in this case to skip the
memory policy related process to reduce overhead.

Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
---
 arch/arm64/include/asm/numa.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/include/asm/numa.h b/arch/arm64/include/asm/numa.h
index 8c8cf4297cc3..f7d4e0cb801b 100644
--- a/arch/arm64/include/asm/numa.h
+++ b/arch/arm64/include/asm/numa.h
@@ -5,4 +5,8 @@ 
 #include <asm/topology.h>
 #include <asm-generic/numa.h>
 
+#ifdef CONFIG_NUMA
+#define numa_off_fastpath()	numa_off
+#endif	/* CONFIG_NUMA */
+
 #endif	/* __ASM_NUMA_H */