aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-05 15:04:11 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-21 19:14:32 +1000
commite39afba3aa11f7088ddc00d37ab34a85d960a76e (patch)
treead33c77a37e59b1482145c326dd181a3e258cb60 /arch/powerpc/kernel/setup_32.c
parentpowerpc/32: Move cache info inits to a separate function (diff)
downloadlinux-dev-e39afba3aa11f7088ddc00d37ab34a85d960a76e.tar.xz
linux-dev-e39afba3aa11f7088ddc00d37ab34a85d960a76e.zip
powerpc: Re-order the call to smp_setup_cpu_maps()
It makes more sense to do it before intializing xmon() as xmon might use the info in there. We do want to register the console early though in case we want some functioning printk's in the cpu map setup. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r--arch/powerpc/kernel/setup_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 5457911d662d..58674b602149 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -281,11 +281,11 @@ void __init setup_arch(char **cmdline_p)
find_legacy_serial_ports();
- smp_setup_cpu_maps();
-
/* Register early console */
register_early_udbg_console();
+ smp_setup_cpu_maps();
+
xmon_setup();
if (ppc_md.panic)