Commit | Line | Data |
---|---|---|
9f36eaed MJ |
1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
2 | * | |
29784493 MD |
3 | * wrapper/irq.h |
4 | * | |
5 | * wrapper around linux/irq.h. | |
6 | * | |
7 | * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
29784493 MD |
8 | */ |
9 | ||
9f36eaed MJ |
10 | #ifndef _LTTNG_WRAPPER_IRQ_H |
11 | #define _LTTNG_WRAPPER_IRQ_H | |
12 | ||
b78104db | 13 | #include <lttng-kernel-version.h> |
29784493 MD |
14 | |
15 | /* | |
16 | * Starting from the 3.12 Linux kernel, all architectures use the | |
17 | * generic hard irqs system. More details can be seen at commit | |
18 | * 0244ad004a54e39308d495fee0a2e637f8b5c317 in the Linux kernel GIT. | |
19 | */ | |
b78104db | 20 | #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,12,0) \ |
29784493 MD |
21 | || defined(CONFIG_GENERIC_HARDIRQS)) |
22 | # define CONFIG_LTTNG_HAS_LIST_IRQ | |
23 | #endif | |
24 | ||
25 | #endif /* _LTTNG_WRAPPER_IRQ_H */ |