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.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/testing/memblock/linux/memory_hotplug.h b/tools/testing/memblock/linux/memory_hotplug.h
index 47988765a219..dabe2c556858 100644
--- a/tools/testing/memblock/linux/memory_hotplug.h
+++ b/tools/testing/memblock/linux/memory_hotplug.h
@@ -7,13 +7,11 @@
#include <linux/cache.h>
#include <linux/types.h>
+extern bool movable_node_enabled;
+
static inline bool movable_node_is_enabled(void)
{
-#ifdef MOVABLE_NODE
- return true;
-#else
- return false;
-#endif
+ return movable_node_enabled;
}
#endif