datapath: Backport this_cpu_ptr to kernels < 2.6.33
[openvswitch] / datapath / linux / compat / include / asm / percpu.h
1 #ifndef __ASM_PERCPU_WRAPPER_H
2 #define __ASM_PERCPU_WRAPPER_H 1
3
4 #include_next <asm/percpu.h>
5
6 #ifndef this_cpu_ptr
7 #define this_cpu_ptr(ptr) per_cpu_ptr(ptr, smp_processor_id())
8 #endif
9
10 #endif