xref: /openbmc/linux/arch/s390/include/asm/percpu.h (revision 1fa6ac37)
1 #ifndef __ARCH_S390_PERCPU__
2 #define __ARCH_S390_PERCPU__
3 
4 /*
5  * s390 uses its own implementation for per cpu data, the offset of
6  * the cpu local data area is cached in the cpu's lowcore memory.
7  */
8 #define __my_cpu_offset S390_lowcore.percpu_offset
9 
10 /*
11  * For 64 bit module code, the module may be more than 4G above the
12  * per cpu area, use weak definitions to force the compiler to
13  * generate external references.
14  */
15 #if defined(CONFIG_SMP) && defined(__s390x__) && defined(MODULE)
16 #define ARCH_NEEDS_WEAK_PER_CPU
17 #endif
18 
19 #include <asm-generic/percpu.h>
20 
21 #endif /* __ARCH_S390_PERCPU__ */
22