X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fpercpu-defs.h;fp=wrapper%2Fpercpu-defs.h;h=0000000000000000000000000000000000000000;hb=117ab60f69a98dcbc365de8008ab93e6699d153a;hp=fff8b1df28625a46355c9a626928a54826161a17;hpb=7c6d929d62a6e24fb1dbeaee5cd2c8afe77720b7;p=lttng-modules.git diff --git a/wrapper/percpu-defs.h b/wrapper/percpu-defs.h deleted file mode 100644 index fff8b1df..00000000 --- a/wrapper/percpu-defs.h +++ /dev/null @@ -1,29 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) - * - * wrapper/percpu-defs.h - * - * wrapper around linux/percpu-defs.h. - * - * Copyright (C) 2014 Mathieu Desnoyers - */ - -#ifndef _LTTNG_WRAPPER_PERCPU_DEFS_H -#define _LTTNG_WRAPPER_PERCPU_DEFS_H - -#include - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) - -#include - -#define lttng_this_cpu_ptr(ptr) this_cpu_ptr(ptr) - -#else /* #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) */ - -#include - -#define lttng_this_cpu_ptr(ptr) (&__get_cpu_var(*(ptr))) - -#endif /* #else #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) */ - -#endif /* _LTTNG_WRAPPER_PERCPU_DEFS_H */