OSDN Git Service

x86/nmi: Push duration printk() to irq context
authorPeter Zijlstra <peterz@infradead.org>
Mon, 3 Feb 2014 17:02:09 +0000 (18:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 9 Feb 2014 12:17:22 +0000 (13:17 +0100)
commite90c78535283dd0ded3bf2e484890d14dba2d527
tree349fe1e8b7d7dc6ea7c78a0d1403b7ca74c2f387
parent6a02ad66b2c44155d529f430d4fa5c6c66321077
x86/nmi: Push duration printk() to irq context

Calling printk() from NMI context is bad (TM), so move it to IRQ
context.

In doing so we slightly change (probably wreck) the debugfs
nmi_longest_ns thingy, in that it doesn't update to reflect the
longest, nor does writing to it reset the count.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-rdw0au56a5ymis1u8p48c12d@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/nmi.h
arch/x86/kernel/nmi.c