]> err.no Git - linux-2.6/commitdiff
[SPARC]: enabling of the 2nd CPU in 2.6.18-rc4
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Fri, 25 Aug 2006 07:46:02 +0000 (00:46 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 27 Aug 2006 00:52:51 +0000 (17:52 -0700)
smp_setup_cpu_possible_map() needs to run after paging_init()
so that the in-kernel device tree is setup.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/setup.c

index 35488d6c74574ff4e8a38d63480010780a9e49c7..0251cab4708bbcf31a23f93e6d942e08f54bfc9b 100644 (file)
@@ -348,9 +348,9 @@ void __init setup_arch(char **cmdline_p)
        init_mm.context = (unsigned long) NO_CONTEXT;
        init_task.thread.kregs = &fake_swapper_regs;
 
-       smp_setup_cpu_possible_map();
-
        paging_init();
+
+       smp_setup_cpu_possible_map();
 }
 
 static int __init set_preferred_console(void)