18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2020 Loongson Technology Corporation Limited
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci#ifndef _ASM_HARDIRQ_H
68c2ecf20Sopenharmony_ci#define _ASM_HARDIRQ_H
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/cache.h>
98c2ecf20Sopenharmony_ci#include <linux/threads.h>
108c2ecf20Sopenharmony_ci#include <linux/irq.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciextern void ack_bad_irq(unsigned int irq);
138c2ecf20Sopenharmony_ci#define ack_bad_irq ack_bad_irq
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define NR_IPI	2
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_citypedef struct {
188c2ecf20Sopenharmony_ci	unsigned int ipi_irqs[NR_IPI];
198c2ecf20Sopenharmony_ci	unsigned int __softirq_pending;
208c2ecf20Sopenharmony_ci} ____cacheline_aligned irq_cpustat_t;
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#include <linux/irq_cpustat.h>	/* Standard mappings for irq_cpustat_t above */
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define __ARCH_IRQ_STAT
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#endif /* _ASM_HARDIRQ_H */
27