Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* hardirq.h: PA-RISC hard IRQ support. |
| 3 | * |
| 4 | * Copyright (C) 2001 Matthew Wilcox <matthew@wil.cx> |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 5 | * Copyright (C) 2013 Helge Deller <deller@gmx.de> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _PARISC_HARDIRQ_H |
| 9 | #define _PARISC_HARDIRQ_H |
| 10 | |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 11 | #include <linux/cache.h> |
| 12 | #include <linux/threads.h> |
| 13 | #include <linux/irq.h> |
| 14 | |
Helge Deller | 416821d | 2013-05-10 21:24:01 +0000 | [diff] [blame] | 15 | #ifdef CONFIG_IRQSTACKS |
| 16 | #define __ARCH_HAS_DO_SOFTIRQ |
| 17 | #endif |
| 18 | |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 19 | typedef struct { |
| 20 | unsigned int __softirq_pending; |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 21 | unsigned int kernel_stack_usage; |
Helge Deller | 416821d | 2013-05-10 21:24:01 +0000 | [diff] [blame] | 22 | unsigned int irq_stack_usage; |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 23 | #ifdef CONFIG_SMP |
| 24 | unsigned int irq_resched_count; |
Helge Deller | b102f29 | 2019-01-05 20:07:27 +0100 | [diff] [blame] | 25 | unsigned int irq_call_count; |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 26 | #endif |
Helge Deller | d0c3be8 | 2013-05-18 19:35:44 +0000 | [diff] [blame] | 27 | unsigned int irq_unaligned_count; |
| 28 | unsigned int irq_fpassist_count; |
Helge Deller | 0fc537d | 2013-05-07 21:42:47 +0000 | [diff] [blame] | 29 | unsigned int irq_tlb_count; |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 30 | } ____cacheline_aligned irq_cpustat_t; |
| 31 | |
| 32 | DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); |
| 33 | |
| 34 | #define __ARCH_IRQ_STAT |
| 35 | #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member) |
| 36 | #define inc_irq_stat(member) this_cpu_inc(irq_stat.member) |
Helge Deller | 416821d | 2013-05-10 21:24:01 +0000 | [diff] [blame] | 37 | #define __inc_irq_stat(member) __this_cpu_inc(irq_stat.member) |
Helge Deller | cd85d55 | 2013-05-06 19:20:26 +0000 | [diff] [blame] | 38 | #define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
| 40 | #endif /* _PARISC_HARDIRQ_H */ |