aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-05 15:04:00 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-21 18:59:22 +1000
commit406b0b6ae3fcd5c7946a68a9e43b470c79d292a2 (patch)
tree6d6ee917303ebae7cf3fd1b551778883e3941d3b /arch/powerpc/kernel/setup_64.c
parentpowerpc: Ensure that ppc_md is empty before probing for machine type (diff)
downloadlinux-dev-406b0b6ae3fcd5c7946a68a9e43b470c79d292a2.tar.xz
linux-dev-406b0b6ae3fcd5c7946a68a9e43b470c79d292a2.zip
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>
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 4ffd090633de..883d527899a7 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -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