percpu.h 468 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_POWERPC_PERCPU_H_
  3. #define _ASM_POWERPC_PERCPU_H_
  4. #ifdef __powerpc64__
  5. /*
  6. * Same as asm-generic/percpu.h, except that we store the per cpu offset
  7. * in the paca. Based on the x86-64 implementation.
  8. */
  9. #ifdef CONFIG_SMP
  10. #define __my_cpu_offset local_paca->data_offset
  11. #endif /* CONFIG_SMP */
  12. #endif /* __powerpc64__ */
  13. #include <asm-generic/percpu.h>
  14. #include <asm/paca.h>
  15. #endif /* _ASM_POWERPC_PERCPU_H_ */