irqflags.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LIBLOCKDEP_LINUX_TRACE_IRQFLAGS_H_
  3. #define _LIBLOCKDEP_LINUX_TRACE_IRQFLAGS_H_
  4. # define trace_hardirq_context(p) 0
  5. # define trace_softirq_context(p) 0
  6. # define trace_hardirqs_enabled(p) 0
  7. # define trace_softirqs_enabled(p) 0
  8. # define trace_hardirq_enter() do { } while (0)
  9. # define trace_hardirq_exit() do { } while (0)
  10. # define lockdep_softirq_enter() do { } while (0)
  11. # define lockdep_softirq_exit() do { } while (0)
  12. # define INIT_TRACE_IRQFLAGS
  13. # define stop_critical_timings() do { } while (0)
  14. # define start_critical_timings() do { } while (0)
  15. #define raw_local_irq_disable() do { } while (0)
  16. #define raw_local_irq_enable() do { } while (0)
  17. #define raw_local_irq_save(flags) ((flags) = 0)
  18. #define raw_local_irq_restore(flags) ((void)(flags))
  19. #define raw_local_save_flags(flags) ((flags) = 0)
  20. #define raw_irqs_disabled_flags(flags) ((void)(flags))
  21. #define raw_irqs_disabled() 0
  22. #define raw_safe_halt()
  23. #define local_irq_enable() do { } while (0)
  24. #define local_irq_disable() do { } while (0)
  25. #define local_irq_save(flags) ((flags) = 0)
  26. #define local_irq_restore(flags) ((void)(flags))
  27. #define local_save_flags(flags) ((flags) = 0)
  28. #define irqs_disabled() (1)
  29. #define irqs_disabled_flags(flags) ((void)(flags), 0)
  30. #define safe_halt() do { } while (0)
  31. #define trace_lock_release(x, y)
  32. #define trace_lock_acquire(a, b, c, d, e, f, g)
  33. #endif