blob: e734da3e5b332c416f441b9ea3fad66ec919d968 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sasha Levin5634bd72013-06-13 18:41:17 -04002#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 Hutchingsb016d872017-05-25 12:58:38 +000021#define raw_local_irq_restore(flags) ((void)(flags))
Sasha Levin5634bd72013-06-13 18:41:17 -040022#define raw_local_save_flags(flags) ((flags) = 0)
Ben Hutchingsb016d872017-05-25 12:58:38 +000023#define raw_irqs_disabled_flags(flags) ((void)(flags))
Sasha Levin5634bd72013-06-13 18:41:17 -040024#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 Hutchingsb016d872017-05-25 12:58:38 +000030#define local_irq_restore(flags) ((void)(flags))
Sasha Levin5634bd72013-06-13 18:41:17 -040031#define local_save_flags(flags) ((flags) = 0)
32#define irqs_disabled() (1)
Ben Hutchingsb016d872017-05-25 12:58:38 +000033#define irqs_disabled_flags(flags) ((void)(flags), 0)
Sasha Levin5634bd72013-06-13 18:41:17 -040034#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