From: Anton Blanchard <anton@samba.org>
Add numa=off command line option to disable NUMA support at runtime.
Useful if there are issues with our parsing of the NUMA toplogy or for
testing NUMA gains.
#include <linux/mmzone.h>
#include <linux/module.h>
#include <asm/lmb.h>
+#include <asm/machdep.h>
#if 1
#define dbg(args...) udbg_printf(args)
int depth;
int max_domain = 0;
+ if (strstr(saved_command_line, "numa=off")) {
+ printk(KERN_WARNING "NUMA disabled by user\n");
+ return -1;
+ }
+
cpu = of_find_node_by_type(NULL, "cpu");
if (!cpu)
goto err;