Commit e39afba3 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Michael Ellerman

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 8f212cb2
...@@ -281,11 +281,11 @@ void __init setup_arch(char **cmdline_p) ...@@ -281,11 +281,11 @@ void __init setup_arch(char **cmdline_p)
find_legacy_serial_ports(); find_legacy_serial_ports();
smp_setup_cpu_maps();
/* Register early console */ /* Register early console */
register_early_udbg_console(); register_early_udbg_console();
smp_setup_cpu_maps();
xmon_setup(); xmon_setup();
if (ppc_md.panic) if (ppc_md.panic)
......
...@@ -661,12 +661,13 @@ void __init setup_arch(char **cmdline_p) ...@@ -661,12 +661,13 @@ void __init setup_arch(char **cmdline_p)
*/ */
register_early_udbg_console(); register_early_udbg_console();
smp_setup_cpu_maps();
/* /*
* Initialize xmon * Initialize xmon
*/ */
xmon_setup(); xmon_setup();
smp_setup_cpu_maps();
check_smt_enabled(); check_smt_enabled();
setup_tlb_core_data(); setup_tlb_core_data();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment