irq.h 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. extern void release_vm86_irqs(struct task_struct *);
  21. #ifdef CONFIG_X86_LOCAL_APIC
  22. # define ARCH_HAS_NMI_WATCHDOG /* See include/linux/nmi.h */
  23. #endif
  24. #ifdef CONFIG_4KSTACKS
  25. extern void irq_ctx_init(int cpu);
  26. extern void irq_ctx_exit(int cpu);
  27. # define __ARCH_HAS_DO_SOFTIRQ
  28. #else
  29. # define irq_ctx_init(cpu) do { } while (0)
  30. # define irq_ctx_exit(cpu) do { } while (0)
  31. #endif
  32. #ifdef CONFIG_IRQBALANCE
  33. extern int irqbalance_disable(char *str);
  34. #endif
  35. #ifdef CONFIG_HOTPLUG_CPU
  36. extern void fixup_irqs(cpumask_t map);
  37. #endif
  38. #endif /* _ASM_IRQ_H */