irq.h 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef _ASM_IRQ_H
  2. #define _ASM_IRQ_H
  3. /*
  4. * linux/include/asm/irq.h
  5. *
  6. * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar
  7. *
  8. * IRQ/IPI changes taken from work by Thomas Radke
  9. * <tomsoft@informatik.tu-chemnitz.de>
  10. */
  11. #include <linux/config.h>
  12. #include <linux/sched.h>
  13. /* include comes from machine specific directory */
  14. #include "irq_vectors.h"
  15. #include <asm/thread_info.h>
  16. static __inline__ int irq_canonicalize(int irq)
  17. {
  18. return ((irq == 2) ? 9 : irq);
  19. }
  20. #ifdef CONFIG_X86_LOCAL_APIC
  21. # define ARCH_HAS_NMI_WATCHDOG /* See include/linux/nmi.h */
  22. #endif
  23. #ifdef CONFIG_4KSTACKS
  24. extern void irq_ctx_init(int cpu);
  25. extern void irq_ctx_exit(int cpu);
  26. # define __ARCH_HAS_DO_SOFTIRQ
  27. #else
  28. # define irq_ctx_init(cpu) do { } while (0)
  29. # define irq_ctx_exit(cpu) do { } while (0)
  30. #endif
  31. #ifdef CONFIG_IRQBALANCE
  32. extern int irqbalance_disable(char *str);
  33. #endif
  34. #ifdef CONFIG_HOTPLUG_CPU
  35. extern void fixup_irqs(cpumask_t map);
  36. #endif
  37. #endif /* _ASM_IRQ_H */