percpu.h 488 B

123456789101112131415161718
  1. #ifndef __ALPHA_PERCPU_H
  2. #define __ALPHA_PERCPU_H
  3. /*
  4. * To calculate addresses of locally defined variables, GCC uses
  5. * 32-bit displacement from the GP. Which doesn't work for per cpu
  6. * variables in modules, as an offset to the kernel per cpu area is
  7. * way above 4G.
  8. *
  9. * Always use weak definitions for percpu variables in modules.
  10. */
  11. #if defined(MODULE) && defined(CONFIG_SMP)
  12. #define ARCH_NEEDS_WEAK_PER_CPU
  13. #endif
  14. #include <asm-generic/percpu.h>
  15. #endif /* __ALPHA_PERCPU_H */