hardirq.h 976 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* hardirq.h: PA-RISC hard IRQ support.
  3. *
  4. * Copyright (C) 2001 Matthew Wilcox <[email protected]>
  5. * Copyright (C) 2013 Helge Deller <[email protected]>
  6. */
  7. #ifndef _PARISC_HARDIRQ_H
  8. #define _PARISC_HARDIRQ_H
  9. #include <linux/cache.h>
  10. #include <linux/threads.h>
  11. #include <linux/irq.h>
  12. typedef struct {
  13. unsigned int __softirq_pending;
  14. unsigned int kernel_stack_usage;
  15. unsigned int irq_stack_usage;
  16. #ifdef CONFIG_SMP
  17. unsigned int irq_resched_count;
  18. unsigned int irq_call_count;
  19. #endif
  20. unsigned int irq_unaligned_count;
  21. unsigned int irq_fpassist_count;
  22. unsigned int irq_tlb_count;
  23. } ____cacheline_aligned irq_cpustat_t;
  24. DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
  25. #define __ARCH_IRQ_STAT
  26. #define inc_irq_stat(member) this_cpu_inc(irq_stat.member)
  27. #define __inc_irq_stat(member) __this_cpu_inc(irq_stat.member)
  28. #define ack_bad_irq(irq) WARN(1, "unexpected IRQ trap at vector %02x\n", irq)
  29. #endif /* _PARISC_HARDIRQ_H */