aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-05-06 20:25:34 -0400
committerPaul Mackerras <paulus@samba.org>2008-05-09 06:22:58 -0400
commitf2fd25131b5a9c802faa1de1e9b5f1b06d16eec3 (patch)
tree913626ebadc92e7d752cc8ad3aecd714d0164d62 /arch/powerpc
parent24d9649574fbe591fdfa6b00893d4096f513e539 (diff)
[POWERPC] Initialize lockdep earlier
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>
Diffstat (limited to 'arch/powerpc')
-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 f2cd82eaf49d..098fd96a394a 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -181,14 +181,14 @@ void __init early_setup(unsigned long dt_ptr)
181 /* Assume we're on cpu 0 for now. Don't write to the paca yet! */ 181 /* Assume we're on cpu 0 for now. Don't write to the paca yet! */
182 setup_paca(0); 182 setup_paca(0);
183 183
184 /* Enable early debugging if any specified (see udbg.h) */
185 udbg_early_init();
186
187 /* Initialize lockdep early or else spinlocks will blow */ 184 /* Initialize lockdep early or else spinlocks will blow */
188 lockdep_init(); 185 lockdep_init();
189 186
190 /* -------- printk is now safe to use ------- */ 187 /* -------- printk is now safe to use ------- */
191 188
189 /* Enable early debugging if any specified (see udbg.h) */
190 udbg_early_init();
191
192 DBG(" -> early_setup(), dt_ptr: 0x%lx\n", dt_ptr); 192 DBG(" -> early_setup(), dt_ptr: 0x%lx\n", dt_ptr);
193 193
194 /* 194 /*