aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/memblock/linux/memory_hotplug.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/memblock/linux/memory_hotplug.h')
-rw-r--r--tools/testing/memblock/linux/memory_hotplug.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/testing/memblock/linux/memory_hotplug.h b/tools/testing/memblock/linux/memory_hotplug.h
new file mode 100644
index 000000000000..dabe2c556858
--- /dev/null
+++ b/tools/testing/memblock/linux/memory_hotplug.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_MEMORY_HOTPLUG_H
+#define _LINUX_MEMORY_HOTPLUG_H
+
+#include <linux/numa.h>
+#include <linux/pfn.h>
+#include <linux/cache.h>
+#include <linux/types.h>
+
+extern bool movable_node_enabled;
+
+static inline bool movable_node_is_enabled(void)
+{
+ return movable_node_enabled;
+}
+
+#endif