1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef _ASM_POWERPC_PERCPU_H_ 3 #define _ASM_POWERPC_PERCPU_H_ 4 #ifdef __powerpc64__ 5 6 /* 7 * Same as asm-generic/percpu.h, except that w 8 * in the paca. Based on the x86-64 implementa 9 */ 10 11 #ifdef CONFIG_SMP 12 13 #define __my_cpu_offset local_paca->data_offse 14 15 #endif /* CONFIG_SMP */ 16 #endif /* __powerpc64__ */ 17 18 #if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHU 19 #include <linux/jump_label.h> 20 DECLARE_STATIC_KEY_FALSE(__percpu_first_chunk_ 21 22 #define percpu_first_chunk_is_paged \ 23 (static_key_enabled(&__percpu_ 24 #else 25 #define percpu_first_chunk_is_paged false 26 #endif 27 28 #include <asm-generic/percpu.h> 29 30 #include <asm/paca.h> 31 32 #endif /* _ASM_POWERPC_PERCPU_H_ */ 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.