]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Must run smp_setup_cpu_possible_map() after paging_init()
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 22 Jun 2006 07:49:15 +0000 (00:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 24 Jun 2006 06:15:23 +0000 (23:15 -0700)
Otherwise the in-kernel PROM device tree isn't built yet,
and therefore the present cpu bits don't get set properly.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/setup.c

index 9cf1c88cd774ffbcbe3b58da0574986c4e6860ff..a6a7d8168346c6b50b9910727ccd344f9566b5f1 100644 (file)
@@ -376,12 +376,12 @@ void __init setup_arch(char **cmdline_p)
        }
 #endif
 
-       smp_setup_cpu_possible_map();
-
        /* Get boot processor trap_block[] setup.  */
        init_cur_cpu_trap(current_thread_info());
 
        paging_init();
+
+       smp_setup_cpu_possible_map();
 }
 
 static int __init set_preferred_console(void)