Skip to contentSkip to conversation

serial8250: Mark console as CON_ANYTIME

PATCH Peter Zijlstra 1 participant 1 message Nov 15, 2010 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

While trying to debug a cpu-hotplug issue I noticed printk() stopped working once the cpu got marked offline, since the 8250 serial console doesn't have any per-cpu resources the CON_ANYTIME bit is the safe and documented way to make it work again.

---
 drivers/serial/8250.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/serial/8250.c +1 -1
index 4d8e14b..09a5508 100644
@@ -2872,7 +2872,7 @@ static struct console serial8250_console = {
 	.device		= uart_console_device,
 	.setup		= serial8250_console_setup,
 	.early_setup	= serial8250_console_early_setup,
-	.flags		= CON_PRINTBUFFER,
+	.flags		= CON_PRINTBUFFER | CON_ANYTIME,
 	.index		= -1,
 	.data		= &serial8250_reg,
 };