Commit f0f69239 authored by Petr Mladek's avatar Petr Mladek

Merge branch 'rework/misc-cleanups' into for-linus

parents b3553628 132a90d1
...@@ -154,6 +154,8 @@ static inline int con_debug_leave(void) ...@@ -154,6 +154,8 @@ static inline int con_debug_leave(void)
* receiving the printk spam for obvious reasons. * receiving the printk spam for obvious reasons.
* @CON_EXTENDED: The console supports the extended output format of * @CON_EXTENDED: The console supports the extended output format of
* /dev/kmesg which requires a larger output buffer. * /dev/kmesg which requires a larger output buffer.
* @CON_SUSPENDED: Indicates if a console is suspended. If true, the
* printing callbacks must not be called.
*/ */
enum cons_flags { enum cons_flags {
CON_PRINTBUFFER = BIT(0), CON_PRINTBUFFER = BIT(0),
...@@ -163,6 +165,7 @@ enum cons_flags { ...@@ -163,6 +165,7 @@ enum cons_flags {
CON_ANYTIME = BIT(4), CON_ANYTIME = BIT(4),
CON_BRL = BIT(5), CON_BRL = BIT(5),
CON_EXTENDED = BIT(6), CON_EXTENDED = BIT(6),
CON_SUSPENDED = BIT(7),
}; };
/** /**
......
...@@ -576,6 +576,8 @@ static void kdb_msg_write(const char *msg, int msg_len) ...@@ -576,6 +576,8 @@ static void kdb_msg_write(const char *msg, int msg_len)
continue; continue;
if (c == dbg_io_ops->cons) if (c == dbg_io_ops->cons)
continue; continue;
if (!c->write)
continue;
/* /*
* Set oops_in_progress to encourage the console drivers to * Set oops_in_progress to encourage the console drivers to
* disregard their internal spin locks: in the current calling * disregard their internal spin locks: in the current calling
......
...@@ -103,3 +103,5 @@ struct printk_message { ...@@ -103,3 +103,5 @@ struct printk_message {
u64 seq; u64 seq;
unsigned long dropped; unsigned long dropped;
}; };
bool other_cpu_in_panic(void);
This diff is collapsed.
...@@ -38,13 +38,8 @@ asmlinkage int vprintk(const char *fmt, va_list args) ...@@ -38,13 +38,8 @@ asmlinkage int vprintk(const char *fmt, va_list args)
* Use the main logbuf even in NMI. But avoid calling console * Use the main logbuf even in NMI. But avoid calling console
* drivers that might have their own locks. * drivers that might have their own locks.
*/ */
if (this_cpu_read(printk_context) || in_nmi()) { if (this_cpu_read(printk_context) || in_nmi())
int len; return vprintk_deferred(fmt, args);
len = vprintk_store(0, LOGLEVEL_DEFAULT, NULL, fmt, args);
defer_console_output();
return len;
}
/* No obstacles. */ /* No obstacles. */
return vprintk_default(fmt, args); return vprintk_default(fmt, args);
......
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