powerpc/64: Move 64-bit probe_machine() to later in the boot process

We no long need the machine type that early, so we can move probe_machine()
to after the device-tree has been expanded. This will allow further
consolidation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Benjamin Herrenschmidt
2016-07-05 15:04:00 +10:00
committed by Michael Ellerman
parent 84b62c72fa
commit 406b0b6ae3
8 changed files with 21 additions and 26 deletions

View File

@@ -301,9 +301,6 @@ void __init early_setup(unsigned long dt_ptr)
setup_paca(&paca[boot_cpuid]);
fixup_boot_paca();
/* Probe the machine type */
probe_machine();
/*
* Configure exception handlers. This include setting up trampolines
* if needed, setting exception endian mode, etc...
@@ -511,6 +508,9 @@ void __init setup_system(void)
*/
check_for_initrd();
/* Probe the machine type */
probe_machine();
/*
* Do some platform specific early initializations, that includes
* setting up the hash table pointers. It also sets up some interrupt-mapping