powerpc: Add comment explaining the purpose of setup_kdump_trampoline()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:03:46 +0000 (15:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Jul 2016 10:09:40 +0000 (20:09 +1000)
Anything in early_setup() needs to be justified to be there, in
this case, we need the trampolines before we can take exceptions
and thus before we turn on the MMU.

Also remove a pretty meaningless and misplaced debug message

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[mpe: Fix comment formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup_64.c

index 5530bb55a78b05f325414bf4d5569885ef78afab..98f72c6d0ebcfaa9a3775687823666d735a37c07 100644 (file)
@@ -279,10 +279,12 @@ void __init early_setup(unsigned long dt_ptr)
        /* Probe the machine type */
        probe_machine();
 
+       /*
+        * Setup the trampolines from the lowmem exception vectors
+        * to the kdump kernel when not using a relocatable kernel.
+        */
        setup_kdump_trampoline();
 
-       DBG("Found, Initializing memory management...\n");
-
        /* Initialize the hash table or TLB handling */
        early_init_mmu();