/arch/powerpc/include/asm/percpu.h

https://github.com/aicjofs/android_kernel_lge_v500_20d_f2fs · C Header · 21 lines · 10 code · 7 blank · 4 comment · 0 complexity · 6745986fcec5fab18c7584d42f35bb2b MD5 · raw file

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