Commit b5337885 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds

[PATCH] um: mark both consoles as CON_ANYTIME

Since both UML consoles do not use percpu variables, they may be called when
the cpu is still offline, and they may be marked CON_ANYTIME (this is
documented in kernel/printk.c, grep for CON_ANYTIME to find mentions of this).

Works well in testing done with lock debug enabled, should be safe but is not
needed for next release.

This would probably help also stderr_console.c, but this is yet to test.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9ff1d36c
...@@ -179,7 +179,7 @@ static struct console ssl_cons = { ...@@ -179,7 +179,7 @@ static struct console ssl_cons = {
.write = ssl_console_write, .write = ssl_console_write,
.device = ssl_console_device, .device = ssl_console_device,
.setup = ssl_console_setup, .setup = ssl_console_setup,
.flags = CON_PRINTBUFFER, .flags = CON_PRINTBUFFER|CON_ANYTIME,
.index = -1, .index = -1,
}; };
......
...@@ -153,7 +153,7 @@ static struct console stdiocons = { ...@@ -153,7 +153,7 @@ static struct console stdiocons = {
.write = uml_console_write, .write = uml_console_write,
.device = uml_console_device, .device = uml_console_device,
.setup = uml_console_setup, .setup = uml_console_setup,
.flags = CON_PRINTBUFFER, .flags = CON_PRINTBUFFER|CON_ANYTIME,
.index = -1, .index = -1,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment