summaryrefslogtreecommitdiff
path: root/arch/csky/include/asm/irq_work.h
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2020-07-30 17:05:51 +0000
committerGuo Ren <guoren@linux.alibaba.com>2020-07-31 01:55:46 +0000
commit2c81b0768297fb2fb4d2f39eac49a55f3598375b (patch)
treecc7732e9f215ed018c13de737452eba4a488ed37 /arch/csky/include/asm/irq_work.h
parent667b9324bd83d79abd64ee21bf5fa17ccc9ec246 (diff)
csky: Add irq_work support
Running work in hardware interrupt context for csky. Implement: - arch_irq_work_raise() - arch_irq_work_has_interrupt() Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/include/asm/irq_work.h')
-rw-r--r--arch/csky/include/asm/irq_work.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/csky/include/asm/irq_work.h b/arch/csky/include/asm/irq_work.h
new file mode 100644
index 000000000000..33aaf39d6f94
--- /dev/null
+++ b/arch/csky/include/asm/irq_work.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef __ASM_CSKY_IRQ_WORK_H
+#define __ASM_CSKY_IRQ_WORK_H
+
+static inline bool arch_irq_work_has_interrupt(void)
+{
+ return true;
+}
+extern void arch_irq_work_raise(void);
+#endif /* __ASM_CSKY_IRQ_WORK_H */