mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
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>
11 lines
229 B
C
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
|