[POWERPC] Initialize lockdep earlier
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 May 2008 00:25:34 +0000 (10:25 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 May 2008 10:22:58 +0000 (20:22 +1000)
This moves lockdep_init() to before udbg_early_init() as the later
can call things that acquire spinlocks etc...  This also makes printk
safer to use earlier.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/setup_64.c

index f2cd82eaf49db12a35e658d63c465f5665e5f7ba..098fd96a394aa4df6947a2cad11146458de2b29f 100644 (file)
@@ -181,14 +181,14 @@ void __init early_setup(unsigned long dt_ptr)
        /* Assume we're on cpu 0 for now. Don't write to the paca yet! */
        setup_paca(0);
 
-       /* Enable early debugging if any specified (see udbg.h) */
-       udbg_early_init();
-
        /* Initialize lockdep early or else spinlocks will blow */
        lockdep_init();
 
        /* -------- printk is now safe to use ------- */
 
+       /* Enable early debugging if any specified (see udbg.h) */
+       udbg_early_init();
+
        DBG(" -> early_setup(), dt_ptr: 0x%lx\n", dt_ptr);
 
        /*