sched: do not account for NMIs
commit2a7b8df04c11a70105c1abe67d006455d3bdc944
authorSteven Rostedt <srostedt@redhat.com>
Thu, 12 Feb 2009 19:16:46 +0000 (12 14:16 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Thu, 12 Feb 2009 19:16:46 +0000 (12 14:16 -0500)
treeb4b709bbed075c909b8219148a6b94e6f0c3140d
parent5a5fb7dbe88dd57dc2bef0f3be9da991e789612d
sched: do not account for NMIs

Impact: avoid corruption in system time accounting

Martin Schwidefsky told me that there was an issue with NMIs and
system accounting. The problem is that the accounting code is
not reentrant, and if an NMI goes off after an interrupt it can
corrupt the accounting.

For now, the best we can do is to treat NMIs like SMIs and they
are not accounted for.

This patch changes nmi_enter to not call __irq_enter and to do
the preempt-count and tracing calls directly.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
include/linux/hardirq.h