[PATCH 2/2] arm64: numa: support numa_off_fastpath

From: Janghyuck Kim
Date: Wed Jun 16 2021 - 04:16:44 EST


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@xxxxxxxxxxx>
---
arch/arm64/include/asm/numa.h | 4 ++++
1 file changed, 4 insertions(+)

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 */
--
2.28.0