Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 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) |
Ben Hutchings | b016d87 | 2017-05-25 12:58:38 +0000 | [diff] [blame] | 21 | #define raw_local_irq_restore(flags) ((void)(flags)) |
Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 22 | #define raw_local_save_flags(flags) ((flags) = 0) |
Ben Hutchings | b016d87 | 2017-05-25 12:58:38 +0000 | [diff] [blame] | 23 | #define raw_irqs_disabled_flags(flags) ((void)(flags)) |
Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 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) |
Ben Hutchings | b016d87 | 2017-05-25 12:58:38 +0000 | [diff] [blame] | 30 | #define local_irq_restore(flags) ((void)(flags)) |
Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 31 | #define local_save_flags(flags) ((flags) = 0) |
| 32 | #define irqs_disabled() (1) |
Ben Hutchings | b016d87 | 2017-05-25 12:58:38 +0000 | [diff] [blame] | 33 | #define irqs_disabled_flags(flags) ((void)(flags), 0) |
Sasha Levin | 5634bd7 | 2013-06-13 18:41:17 -0400 | [diff] [blame] | 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 |