2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-27 15:18:06 +00:00
Files
openvswitch/datapath/linux/compat/include/asm/percpu.h
Thomas Graf 42d5dd9595 datapath: Account for RHEL6.4 backports in compat layer
Explicitly check the availability of several kernel API functions
instead of relying on the kernel version to account for Red Hat
Enterprise Linux backports.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
2013-04-25 13:24:49 -07:00

11 lines
229 B
C

#ifndef __ASM_PERCPU_WRAPPER_H
#define __ASM_PERCPU_WRAPPER_H 1
#include_next <asm/percpu.h>
#if !defined this_cpu_ptr && !defined HAVE_THIS_CPU_PTR
#define this_cpu_ptr(ptr) per_cpu_ptr(ptr, smp_processor_id())
#endif
#endif