1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_PERCPU_H_
3 #define _ASM_POWERPC_PERCPU_H_
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.
13 #define __my_cpu_offset local_paca->data_offset
15 #endif /* CONFIG_SMP */
16 #endif /* __powerpc64__ */
18 #if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) && defined(CONFIG_SMP)
19 #include <linux/jump_label.h>
20 DECLARE_STATIC_KEY_FALSE(__percpu_first_chunk_is_paged
);
22 #define percpu_first_chunk_is_paged \
23 (static_key_enabled(&__percpu_first_chunk_is_paged.key))
25 #define percpu_first_chunk_is_paged false
28 #include <asm-generic/percpu.h>
32 #endif /* _ASM_POWERPC_PERCPU_H_ */