percpu.h 595 B

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