Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __ALPHA_PERCPU_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __ALPHA_PERCPU_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * To calculate addresses of locally defined variables, GCC uses
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * 32-bit displacement from the GP. Which doesn't work for per cpu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * variables in modules, as an offset to the kernel per cpu area is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * way above 4G.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * Always use weak definitions for percpu variables in modules.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #if defined(MODULE) && defined(CONFIG_SMP)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define ARCH_NEEDS_WEAK_PER_CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <asm-generic/percpu.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #endif /* __ALPHA_PERCPU_H */