xref: /openbmc/linux/arch/powerpc/include/asm/percpu.h (revision 0c83b277)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2b8b572e1SStephen Rothwell #ifndef _ASM_POWERPC_PERCPU_H_
3b8b572e1SStephen Rothwell #define _ASM_POWERPC_PERCPU_H_
4b8b572e1SStephen Rothwell #ifdef __powerpc64__
5b8b572e1SStephen Rothwell 
6b8b572e1SStephen Rothwell /*
7b8b572e1SStephen Rothwell  * Same as asm-generic/percpu.h, except that we store the per cpu offset
8b8b572e1SStephen Rothwell  * in the paca. Based on the x86-64 implementation.
9b8b572e1SStephen Rothwell  */
10b8b572e1SStephen Rothwell 
11b8b572e1SStephen Rothwell #ifdef CONFIG_SMP
12b8b572e1SStephen Rothwell 
13b8b572e1SStephen Rothwell #define __my_cpu_offset local_paca->data_offset
14b8b572e1SStephen Rothwell 
15b8b572e1SStephen Rothwell #endif /* CONFIG_SMP */
16b8b572e1SStephen Rothwell #endif /* __powerpc64__ */
17b8b572e1SStephen Rothwell 
18b8b572e1SStephen Rothwell #include <asm-generic/percpu.h>
19b8b572e1SStephen Rothwell 
20*0c83b277SMichael Ellerman #include <asm/paca.h>
21*0c83b277SMichael Ellerman 
22b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_PERCPU_H_ */
23