hardirq.h 563 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
  4. */
  5. #ifndef _ASM_HARDIRQ_H
  6. #define _ASM_HARDIRQ_H
  7. #include <linux/cache.h>
  8. #include <linux/threads.h>
  9. #include <linux/irq.h>
  10. extern void ack_bad_irq(unsigned int irq);
  11. #define ack_bad_irq ack_bad_irq
  12. #define NR_IPI 2
  13. typedef struct {
  14. unsigned int ipi_irqs[NR_IPI];
  15. unsigned int __softirq_pending;
  16. } ____cacheline_aligned irq_cpustat_t;
  17. DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
  18. #define __ARCH_IRQ_STAT
  19. #endif /* _ASM_HARDIRQ_H */