blob: 1e4fbd0fd944808c3be46ac53fe462053ed4b826 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/* hardirq.h: PA-RISC hard IRQ support.
3 *
4 * Copyright (C) 2001 Matthew Wilcox <matthew@wil.cx>
Helge Dellercd85d552013-05-06 19:20:26 +00005 * Copyright (C) 2013 Helge Deller <deller@gmx.de>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7
8#ifndef _PARISC_HARDIRQ_H
9#define _PARISC_HARDIRQ_H
10
Helge Dellercd85d552013-05-06 19:20:26 +000011#include <linux/cache.h>
12#include <linux/threads.h>
13#include <linux/irq.h>
14
15typedef struct {
16 unsigned int __softirq_pending;
Helge Dellercd85d552013-05-06 19:20:26 +000017 unsigned int kernel_stack_usage;
Helge Deller416821d2013-05-10 21:24:01 +000018 unsigned int irq_stack_usage;
Helge Dellercd85d552013-05-06 19:20:26 +000019#ifdef CONFIG_SMP
20 unsigned int irq_resched_count;
Helge Dellerb102f292019-01-05 20:07:27 +010021 unsigned int irq_call_count;
Helge Dellercd85d552013-05-06 19:20:26 +000022#endif
Helge Dellerd0c3be82013-05-18 19:35:44 +000023 unsigned int irq_unaligned_count;
24 unsigned int irq_fpassist_count;
Helge Deller0fc537d2013-05-07 21:42:47 +000025 unsigned int irq_tlb_count;
Helge Dellercd85d552013-05-06 19:20:26 +000026} ____cacheline_aligned irq_cpustat_t;
27
28DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
29
30#define __ARCH_IRQ_STAT
Helge Dellercd85d552013-05-06 19:20:26 +000031#define inc_irq_stat(member) this_cpu_inc(irq_stat.member)
Helge Deller416821d2013-05-10 21:24:01 +000032#define __inc_irq_stat(member) __this_cpu_inc(irq_stat.member)
Helge Dellercd85d552013-05-06 19:20:26 +000033#define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq)
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
35#endif /* _PARISC_HARDIRQ_H */