lkml.org 
[lkml]   [2021]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] arm64: numa: support numa_off_fastpath
Date
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 --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
\
 
 \ /
  Last update: 2021-06-16 10:17    [W:0.057 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site