提交 f336632f 编写于 作者: M Michael Ellerman 提交者: Paul Mackerras

[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: NMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 c7afb4e2
...@@ -154,7 +154,7 @@ static void udbg_console_write(struct console *con, const char *s, ...@@ -154,7 +154,7 @@ static void udbg_console_write(struct console *con, const char *s,
static struct console udbg_console = { static struct console udbg_console = {
.name = "udbg", .name = "udbg",
.write = udbg_console_write, .write = udbg_console_write,
.flags = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT, .flags = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT | CON_ANYTIME,
.index = 0, .index = 0,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册