ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-s390 / percpu.h
1 #ifndef __ARCH_S390_PERCPU__
2 #define __ARCH_S390_PERCPU__
3
4 #include <asm-generic/percpu.h>
5 #include <asm/lowcore.h>
6
7 /*
8  * s390 uses the generic implementation for per cpu data, with the exception that
9  * the offset of the cpu local data area is cached in the cpu's lowcore memory
10  */
11 #undef __get_cpu_var
12 #define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, S390_lowcore.percpu_offset))
13
14 #endif /* __ARCH_S390_PERCPU__ */