]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/testing/radix-tree/linux/percpu.h
radix tree test harness
[karo-tx-linux.git] / tools / testing / radix-tree / linux / percpu.h
diff --git a/tools/testing/radix-tree/linux/percpu.h b/tools/testing/radix-tree/linux/percpu.h
new file mode 100644 (file)
index 0000000..5837f1d
--- /dev/null
@@ -0,0 +1,7 @@
+
+#define DEFINE_PER_CPU(type, val) type val
+
+#define __get_cpu_var(var)     var
+#define this_cpu_ptr(var)      var
+#define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); (ptr); })
+#define per_cpu(var, cpu)      (*per_cpu_ptr(&(var), cpu))