summaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/traps.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-05-05 00:26:35 +0300
committerChris Metcalf <cmetcalf@ezchip.com>2015-05-11 18:22:31 +0300
commite5701b74ccfdbbb0b4d9abcc7d0c569bf5e5375b (patch)
tree12fd2d5402bea262d4a191504f3ad25b5263ae3a /arch/tile/include/asm/traps.h
parentb4287df82991ca608f44d7ac12ad9b3bc39d5baa (diff)
downloadlinux-e5701b74ccfdbbb0b4d9abcc7d0c569bf5e5375b.tar.xz
tile: support delivering NMIs for multicore backtrace
A new hypervisor service was added some time ago (MDE 4.2.1 or later, or MDE 4.3 or later) that allows cores to request NMIs to be delivered to other cores. Use this facility to deliver a request that causes a backtrace to be generated on each core, and hook it into the magic SysRq functionality. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Diffstat (limited to 'arch/tile/include/asm/traps.h')
-rw-r--r--arch/tile/include/asm/traps.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/tile/include/asm/traps.h b/arch/tile/include/asm/traps.h
index 4b99a1c3aab2..11c82270c1f5 100644
--- a/arch/tile/include/asm/traps.h
+++ b/arch/tile/include/asm/traps.h
@@ -52,6 +52,14 @@ void do_timer_interrupt(struct pt_regs *, int fault_num);
/* kernel/messaging.c */
void hv_message_intr(struct pt_regs *, int intnum);
+#define TILE_NMI_DUMP_STACK 1 /* Dump stack for sysrq+'l' */
+
+/* kernel/process.c */
+void do_nmi_dump_stack(struct pt_regs *regs);
+
+/* kernel/traps.c */
+void do_nmi(struct pt_regs *, int fault_num, unsigned long reason);
+
/* kernel/irq.c */
void tile_dev_intr(struct pt_regs *, int intnum);