From 973a4e70ef88e14c78f21e93d85ef7de0900af81 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 18 Mar 2004 14:58:43 -0800 Subject: [PATCH] [PATCH] ppc64: Add numa=off command line option From: Anton Blanchard 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. --- arch/ppc64/mm/numa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/ppc64/mm/numa.c b/arch/ppc64/mm/numa.c index fa8d1b9f4911..49ee25260702 100644 --- a/arch/ppc64/mm/numa.c +++ b/arch/ppc64/mm/numa.c @@ -15,6 +15,7 @@ #include #include #include +#include #if 1 #define dbg(args...) udbg_printf(args) @@ -65,6 +66,11 @@ static int __init parse_numa_properties(void) 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; -- 2.39.5