1 #ifndef __LINUX_PERCPU_WRAPPER_H
2 #define __LINUX_PERCPU_WRAPPER_H 1
4 #include_next <linux/percpu.h>
6 #if !defined this_cpu_ptr
7 #define this_cpu_ptr(ptr) per_cpu_ptr(ptr, smp_processor_id())
10 #ifdef HAVE_RHEL6_PER_CPU
16 #if !defined this_cpu_read
17 #define this_cpu_read(ptr) percpu_read(ptr)
20 #if !defined this_cpu_inc
21 #define this_cpu_inc(ptr) percpu_add(ptr, 1)
24 #if !defined this_cpu_dec
25 #define this_cpu_dec(ptr) percpu_sub(ptr, 1)