diff options
| author | Rebecca Mckeever <remckee0@gmail.com> | 2022-07-13 22:17:17 -0500 |
|---|---|---|
| committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-07-20 10:46:33 +0300 |
| commit | 06c8580aa23ddc9b1c37b9c7c5e2cc504e460207 (patch) | |
| tree | fa68978a36d3dea19ba4e611d8759f4dc615e7cd /tools/testing/memblock/linux | |
| parent | fe833b4edc594a4a6f1ce2d68975733e17b8f8ed (diff) | |
memblock tests: change build options to run-time options
Change verbose and movable node build options to run-time options.
Movable node usage:
$ ./main -m
Or:
$ ./main --movable-node
Verbose usage:
$ ./main -v
Or:
$ ./main --verbose
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/20220714031717.12258-1-remckee0@gmail.com
Diffstat (limited to 'tools/testing/memblock/linux')
| -rw-r--r-- | tools/testing/memblock/linux/memory_hotplug.h | 8 |
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 |
