percpu.h 532 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ALPHA_PERCPU_H
  3. #define __ALPHA_PERCPU_H
  4. /*
  5. * To calculate addresses of locally defined variables, GCC uses
  6. * 32-bit displacement from the GP. Which doesn't work for per cpu
  7. * variables in modules, as an offset to the kernel per cpu area is
  8. * way above 4G.
  9. *
  10. * Always use weak definitions for percpu variables in modules.
  11. * Therefore, we have enabled CONFIG_ARCH_MODULE_NEEDS_WEAK_PER_CPU
  12. * in the Kconfig.
  13. */
  14. #include <asm-generic/percpu.h>
  15. #endif /* __ALPHA_PERCPU_H */