Merge tag 'input-for-v6.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / arch / parisc / include / asm / hardirq.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2/* hardirq.h: PA-RISC hard IRQ support.
3 *
4 * Copyright (C) 2001 Matthew Wilcox <matthew@wil.cx>
cd85d551 5 * Copyright (C) 2013 Helge Deller <deller@gmx.de>
1da177e4
LT
6 */
7
8#ifndef _PARISC_HARDIRQ_H
9#define _PARISC_HARDIRQ_H
10
cd85d551
HD
11#include <linux/cache.h>
12#include <linux/threads.h>
13#include <linux/irq.h>
14
15typedef struct {
16 unsigned int __softirq_pending;
cd85d551 17 unsigned int kernel_stack_usage;
416821d3 18 unsigned int irq_stack_usage;
cd85d551
HD
19#ifdef CONFIG_SMP
20 unsigned int irq_resched_count;
b102f29b 21 unsigned int irq_call_count;
cd85d551 22#endif
d0c3be80
HD
23 unsigned int irq_unaligned_count;
24 unsigned int irq_fpassist_count;
0fc537d1 25 unsigned int irq_tlb_count;
cd85d551
HD
26} ____cacheline_aligned irq_cpustat_t;
27
28DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
29
30#define __ARCH_IRQ_STAT
cd85d551 31#define inc_irq_stat(member) this_cpu_inc(irq_stat.member)
416821d3 32#define __inc_irq_stat(member) __this_cpu_inc(irq_stat.member)
cd85d551 33#define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq)
1da177e4
LT
34
35#endif /* _PARISC_HARDIRQ_H */