|
@@ -47,6 +47,8 @@
|
|
/* This is used for other cpus to find our section. */
|
|
/* This is used for other cpus to find our section. */
|
|
extern unsigned long __per_cpu_offset[];
|
|
extern unsigned long __per_cpu_offset[];
|
|
|
|
|
|
|
|
+#define per_cpu_offset(x) (__per_cpu_offset[x])
|
|
|
|
+
|
|
/* Separate out the type, so (int[3], foo) works. */
|
|
/* Separate out the type, so (int[3], foo) works. */
|
|
#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
|
|
#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
|
|
#define DEFINE_PER_CPU(type, name) \
|
|
#define DEFINE_PER_CPU(type, name) \
|