Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
7a0268fa AB |
2 | #ifndef _ASM_POWERPC_PERCPU_H_ |
3 | #define _ASM_POWERPC_PERCPU_H_ | |
4 | #ifdef __powerpc64__ | |
7a0268fa AB |
5 | |
6 | /* | |
7 | * Same as asm-generic/percpu.h, except that we store the per cpu offset | |
8 | * in the paca. Based on the x86-64 implementation. | |
9 | */ | |
10 | ||
11 | #ifdef CONFIG_SMP | |
12 | ||
13 | #include <asm/paca.h> | |
14 | ||
1e835278 | 15 | #define __my_cpu_offset local_paca->data_offset |
7a0268fa | 16 | |
56f90205 | 17 | #endif /* CONFIG_SMP */ |
18 | #endif /* __powerpc64__ */ | |
7a0268fa | 19 | |
6f9aa727 | 20 | #include <asm-generic/percpu.h> |
7a0268fa AB |
21 | |
22 | #endif /* _ASM_POWERPC_PERCPU_H_ */ |