Linux 4.18.10
[linux/fpc-iii.git] / arch / alpha / include / asm / percpu.h
blob6923249f2d49c7ef90cfc3ce853cbb8281ab0a72
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ALPHA_PERCPU_H
3 #define __ALPHA_PERCPU_H
5 /*
6 * To calculate addresses of locally defined variables, GCC uses
7 * 32-bit displacement from the GP. Which doesn't work for per cpu
8 * variables in modules, as an offset to the kernel per cpu area is
9 * way above 4G.
11 * Always use weak definitions for percpu variables in modules.
13 #if defined(MODULE) && defined(CONFIG_SMP)
14 #define ARCH_NEEDS_WEAK_PER_CPU
15 #endif
17 #include <asm-generic/percpu.h>
19 #endif /* __ALPHA_PERCPU_H */