]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: add IRQ context simulation in module mce-inject
authorChen Gong <gong.chen@linux.intel.com>
Wed, 7 Dec 2011 17:21:37 +0000 (09:21 -0800)
committerTony Luck <tony.luck@intel.com>
Fri, 16 Dec 2011 19:20:02 +0000 (11:20 -0800)
commit2c29d9dd577b74b44e580f957ea44d1df73af23a
tree37b2db16d3ceae8dbdde67d33c8f0826e3dec499
parentdc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50
x86: add IRQ context simulation in module mce-inject

mce-inject provides a mechanism to simulate errors so that test
scripts can check for correct operation of the kernel without
requiring any specialized hardware to create rare events.

The existing code can simulate events in normal process context
and also in NMI context - but not in IRQ context. This patch
fills that gap.

Link: https://lkml.org/lkml/2011/12/7/537
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce-inject.c