• Petr Mladek's avatar
    printk/nmi: warn when some message has been lost in NMI context · b522deab
    Petr Mladek authored
    We could not resize the temporary buffer in NMI context.  Let's warn if
    a message is lost.
    
    This is rather theoretical.  printk() should not be used in NMI.  The
    only sensible use is when we want to print backtrace from all CPUs.  The
    current buffer should be enough for this purpose.
    
    [akpm@linux-foundation.org: whitespace fixlet]
    Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Russell King <rmk+kernel@arm.linux.org.uk>
    Cc: Daniel Thompson <daniel.thompson@linaro.org>
    Cc: Jiri Kosina <jkosina@suse.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: David Miller <davem@davemloft.net>
    Cc: Daniel Thompson <daniel.thompson@linaro.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    b522deab
nmi.c 5.91 KB