]> err.no Git - linux-2.6/blobdiff - include/asm-generic/percpu.h
Merge mulgrave-w:git/linux-2.6
[linux-2.6] / include / asm-generic / percpu.h
index c745211574614bfdc5f8a63c7510bbc4a79e749f..e160e04290fb9ed2e0977e0a460a49ec18f62a81 100644 (file)
@@ -7,6 +7,8 @@
 
 extern unsigned long __per_cpu_offset[NR_CPUS];
 
+#define per_cpu_offset(x) (__per_cpu_offset[x])
+
 /* Separate out the type, so (int[3], foo) works. */
 #define DEFINE_PER_CPU(type, name) \
     __attribute__((__section__(".data.percpu"))) __typeof__(type) per_cpu__##name