1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
5 * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
8 #ifndef _LTTNG_WRAPPER_CPU_H
9 #define _LTTNG_WRAPPER_CPU_H
11 #include <linux/cpu.h>
12 #include <lttng-kernel-version.h>
14 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,13,0))
17 void lttng_cpus_read_lock(void)
23 void lttng_cpus_read_unlock(void)
28 #else /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,13,0) */
31 void lttng_cpus_read_lock(void)
37 void lttng_cpus_read_unlock(void)
42 #endif /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,13,0) */
44 #endif /* _LTTNG_WRAPPER_CPU_H */
This page took 0.030202 seconds and 4 git commands to generate.