1 #ifndef _ASM_X8664_PERCPU_H_
2 #define _ASM_X8664_PERCPU_H_
3 #include <linux/compiler.h>
5 /* Same as asm-generic/percpu.h, except that we store the per cpu offset
6 in the PDA. Longer term the PDA and every per cpu variable
7 should be just put into a single section and referenced directly
14 #define __per_cpu_offset(cpu) (cpu_pda(cpu)->data_offset)
15 #define __my_cpu_offset read_pda(data_offset)
17 #define per_cpu_offset(x) (__per_cpu_offset(x))
19 /* A macro to avoid #include hell... */
20 #define percpu_modcopy(pcpudst, src, size) \
23 for_each_possible_cpu(__i) \
24 memcpy((pcpudst)+__per_cpu_offset(__i), \
30 #include <asm-generic/percpu.h>
32 #endif /* _ASM_X8664_PERCPU_H_ */