* [PATCH] [POWERPC] Initialize lockdep earlier
@ 2008-05-07 0:25 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2008-05-07 0:25 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
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>
---
arch/powerpc/kernel/setup_64.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- linux-work.orig/arch/powerpc/kernel/setup_64.c 2008-05-07 10:23:35.000000000 +1000
+++ linux-work/arch/powerpc/kernel/setup_64.c 2008-05-07 10:23:45.000000000 +1000
@@ -181,14 +181,14 @@ void __init early_setup(unsigned long dt
/* 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);
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-07 0:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 0:25 [PATCH] [POWERPC] Initialize lockdep earlier Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).