summaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/irq_work.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-03-23 15:21:23 (GMT)
committerChris Metcalf <cmetcalf@ezchip.com>2015-04-17 16:58:44 (GMT)
commitb340c656af6317e28b466996a72cca019d97b42d (patch)
treef8be5b9f7db4146ca8cf8e4288d49b9bc7e6105b /arch/tile/include/asm/irq_work.h
parent9088616fb3c4e0d3ec4efb20378691066a218f9c (diff)
downloadlinux-b340c656af6317e28b466996a72cca019d97b42d.tar.xz
tile: support arch_irq_work_raise
Tile includes a hypervisor hook to deliver messages to arbitrary tiles, so we can use that to raise an interrupt as soon as possible on our own core. Unfortunately the Tilera hypervisor disabled that support on principle in previous releases, but it will be available in MDE 4.3.4 and later. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'arch/tile/include/asm/irq_work.h')
-rw-r--r--arch/tile/include/asm/irq_work.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/tile/include/asm/irq_work.h b/arch/tile/include/asm/irq_work.h
new file mode 100644
index 0000000..48af33a
--- /dev/null
+++ b/arch/tile/include/asm/irq_work.h
@@ -0,0 +1,14 @@
+#ifndef __ASM_IRQ_WORK_H
+#define __ASM_IRQ_WORK_H
+
+static inline bool arch_irq_work_has_interrupt(void)
+{
+#ifdef CONFIG_SMP
+ extern bool self_interrupt_ok;
+ return self_interrupt_ok;
+#else
+ return false;
+#endif
+}
+
+#endif /* __ASM_IRQ_WORK_H */