From: Michael Ellerman Date: Thu, 24 Apr 2008 05:13:14 +0000 (+1000) Subject: [POWERPC] Mark udbg console as CON_ANYTIME, ie. callable early in boot X-Git-Tag: upstream/snapshot3+hdmi~26220^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f336632f191ebf157aeea0f1e65eb1b263655ffc;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [POWERPC] Mark udbg console as CON_ANYTIME, ie. callable early in boot 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index 9ac5f3a..7d6c9bb 100644 --- a/arch/powerpc/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c @@ -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, };