]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef __ALPHA_PERCPU_H |
3 | #define __ALPHA_PERCPU_H | |
9aa7a7d5 | 4 | |
9267b4b3 | 5 | /* |
9b7dbc7d TH |
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. | |
9267b4b3 | 10 | * |
9b7dbc7d | 11 | * Always use weak definitions for percpu variables in modules. |
9267b4b3 | 12 | */ |
9b7dbc7d TH |
13 | #if defined(MODULE) && defined(CONFIG_SMP) |
14 | #define ARCH_NEEDS_WEAK_PER_CPU | |
9aa7a7d5 TH |
15 | #endif |
16 | ||
9b7dbc7d | 17 | #include <asm-generic/percpu.h> |
1da177e4 LT |
18 | |
19 | #endif /* __ALPHA_PERCPU_H */ |