git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Backport this_cpu_ptr to kernels < 2.6.33
[sliver-openvswitch.git]
/
datapath
/
linux
/
compat
/
include
/
asm
/
percpu.h
diff --git a/datapath/linux/compat/include/asm/percpu.h
b/datapath/linux/compat/include/asm/percpu.h
new file mode 100644
(file)
index 0000000..
404b937
--- /dev/null
+++ b/
datapath/linux/compat/include/asm/percpu.h
@@ -0,0
+1,10
@@
+#ifndef __ASM_PERCPU_WRAPPER_H
+#define __ASM_PERCPU_WRAPPER_H 1
+
+#include_next <asm/percpu.h>
+
+#ifndef this_cpu_ptr
+#define this_cpu_ptr(ptr) per_cpu_ptr(ptr, smp_processor_id())
+#endif
+
+#endif