ChangeSet 1.2231.1.37, 2005/03/28 19:26:33-08:00, [EMAIL PROTECTED]

        [PATCH] ppc64: Make numa=off command line argument work again
        
        Mike's patch "ppc64: NUMA memory fixup (another try)" broke the
        numa code when "numa=off" is specified on the kernel command line.
        
        The fix is to pretend everything is in node 0 when numa is disabled.
        
        Boot tested on pSeries LPAR with numa=off and numa=debug (ie. on).
        
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 numa.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/arch/ppc64/mm/numa.c b/arch/ppc64/mm/numa.c
--- a/arch/ppc64/mm/numa.c      2005-03-28 21:14:27 -08:00
+++ b/arch/ppc64/mm/numa.c      2005-03-28 21:14:27 -08:00
@@ -609,7 +609,7 @@
 new_range:
                        mem_start = read_n_cells(addr_cells, &memcell_buf);
                        mem_size = read_n_cells(size_cells, &memcell_buf);
-                       numa_domain = of_node_numa_domain(memory);
+                       numa_domain = numa_enabled ? 
of_node_numa_domain(memory) : 0;
 
                        if (numa_domain != nid)
                                continue;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to