Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / arch / parisc / include / asm / hardirq.h
CommitLineData
1da177e4
LT
1/* hardirq.h: PA-RISC hard IRQ support.
2 *
3 * Copyright (C) 2001 Matthew Wilcox <matthew@wil.cx>
cd85d551 4 * Copyright (C) 2013 Helge Deller <deller@gmx.de>
1da177e4
LT
5 */
6
7#ifndef _PARISC_HARDIRQ_H
8#define _PARISC_HARDIRQ_H
9
cd85d551
HD
10#include <linux/cache.h>
11#include <linux/threads.h>
12#include <linux/irq.h>
13
416821d3
HD
14#ifdef CONFIG_IRQSTACKS
15#define __ARCH_HAS_DO_SOFTIRQ
16#endif
17
cd85d551
HD
18typedef struct {
19 unsigned int __softirq_pending;
cd85d551 20 unsigned int kernel_stack_usage;
416821d3 21 unsigned int irq_stack_usage;
cd85d551
HD
22#ifdef CONFIG_SMP
23 unsigned int irq_resched_count;
cd85d551 24#endif
d0c3be80
HD
25 unsigned int irq_unaligned_count;
26 unsigned int irq_fpassist_count;
0fc537d1 27 unsigned int irq_tlb_count;
cd85d551
HD
28} ____cacheline_aligned irq_cpustat_t;
29
30DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
31
32#define __ARCH_IRQ_STAT
33#define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
34#define inc_irq_stat(member) this_cpu_inc(irq_stat.member)
416821d3 35#define __inc_irq_stat(member) __this_cpu_inc(irq_stat.member)
cd85d551
HD
36#define local_softirq_pending() this_cpu_read(irq_stat.__softirq_pending)
37
38#define __ARCH_SET_SOFTIRQ_PENDING
39
40#define set_softirq_pending(x) \
41 this_cpu_write(irq_stat.__softirq_pending, (x))
42#define or_softirq_pending(x) this_cpu_or(irq_stat.__softirq_pending, (x))
43
44#define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq)
1da177e4
LT
45
46#endif /* _PARISC_HARDIRQ_H */