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