[POWERPC] Mark udbg console as CON_ANYTIME, ie. callable early in boot
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 24 Apr 2008 05:13:14 +0000 (15:13 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 11:08:11 +0000 (21:08 +1000)
The udbg console should be safe to call basically at any time after boot.
It does not need any per-cpu resources or for the cpu to be online, as
long as there is a udbg_putc routine hooked up it should work. So mark it
as CON_ANYTIME.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/udbg.c

index 9ac5f3aad5e8ffefff498c165c45bc0293ff1a95..7d6c9bb8c77fe4f6f220b81d82b282f70e26b83f 100644 (file)
@@ -154,7 +154,7 @@ static void udbg_console_write(struct console *con, const char *s,
 static struct console udbg_console = {
        .name   = "udbg",
        .write  = udbg_console_write,
-       .flags  = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT,
+       .flags  = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT | CON_ANYTIME,
        .index  = 0,
 };