aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2008-04-24 01:13:17 -0400
committerPaul Mackerras <paulus@samba.org>2008-04-24 07:08:12 -0400
commitcb1e2ab45a92b31114dfe6e34832a084f9b0b263 (patch)
treefc5197bb557474f726a1b8fbbe995a9725d694cb /arch/powerpc/platforms/pseries
parentf336632f191ebf157aeea0f1e65eb1b263655ffc (diff)
[POWERPC] Register udbg console early on pseries LPAR
On pseries LPAR we can call the udbg routines, and the udbg console very early. So mark the udbg console as safe to call early in boot, and register the udbg console as soon as the udbg routines are hooked up. This allows platforms/pseries code to use printk() and pr_debug() rather than needing to call udbg_printf() directly for early debugging. This is nice because a) it's standard, b) it goes via the printk buffer, and c) you can get printk time stamps. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r--arch/powerpc/platforms/pseries/lpar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c
index 9235c469449e..c34789fe535e 100644
--- a/arch/powerpc/platforms/pseries/lpar.c
+++ b/arch/powerpc/platforms/pseries/lpar.c
@@ -196,6 +196,8 @@ void __init udbg_init_debug_lpar(void)
196 udbg_putc = udbg_putcLP; 196 udbg_putc = udbg_putcLP;
197 udbg_getc = udbg_getcLP; 197 udbg_getc = udbg_getcLP;
198 udbg_getc_poll = udbg_getc_pollLP; 198 udbg_getc_poll = udbg_getc_pollLP;
199
200 register_early_udbg_console();
199} 201}
200 202
201/* returns 0 if couldn't find or use /chosen/stdout as console */ 203/* returns 0 if couldn't find or use /chosen/stdout as console */