irqflags.h 678 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * include/asm-powerpc/irqflags.h
  3. *
  4. * IRQ flags handling
  5. *
  6. * This file gets included from lowlevel asm headers too, to provide
  7. * wrapped versions of the local_irq_*() APIs, based on the
  8. * raw_local_irq_*() macros from the lowlevel headers.
  9. */
  10. #ifndef _ASM_IRQFLAGS_H
  11. #define _ASM_IRQFLAGS_H
  12. /*
  13. * Get definitions for raw_local_save_flags(x), etc.
  14. */
  15. #include <asm-powerpc/hw_irq.h>
  16. /*
  17. * Do the CPU's IRQ-state tracing from assembly code. We call a
  18. * C function, so save all the C-clobbered registers:
  19. */
  20. #ifdef CONFIG_TRACE_IRQFLAGS
  21. #error No support on PowerPC yet for CONFIG_TRACE_IRQFLAGS
  22. #else
  23. # define TRACE_IRQS_ON
  24. # define TRACE_IRQS_OFF
  25. #endif
  26. #endif