summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
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
parent84b62c72faa197a5c9b75ee93527add31695fb32 (diff)
downloadblackbird-op-linux-406b0b6ae3fcd5c7946a68a9e43b470c79d292a2.tar.gz
blackbird-op-linux-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')
-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
OpenPOWER on IntegriCloud