Linux 4.1.18
[linux/fpc-iii.git] / arch / alpha / include / asm / percpu.h
blob2c12378e3aa95404e6b7045db0aaf5aaacd550a8
1 #ifndef __ALPHA_PERCPU_H
2 #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.
10 * Always use weak definitions for percpu variables in modules.
12 #if defined(MODULE) && defined(CONFIG_SMP)
13 #define ARCH_NEEDS_WEAK_PER_CPU
14 #endif
16 #include <asm-generic/percpu.h>
18 #endif /* __ALPHA_PERCPU_H */