blob: 2cedefddba37f9b916848273ca59120c71a2aacb [file] [log] [blame]
Anton Blanchard7a0268f2006-01-11 13:16:44 +11001#ifndef _ASM_POWERPC_PERCPU_H_
2#define _ASM_POWERPC_PERCPU_H_
3#ifdef __powerpc64__
Anton Blanchard7a0268f2006-01-11 13:16:44 +11004
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
10#ifdef CONFIG_SMP
11
12#include <asm/paca.h>
13
Hugh Dickins1e835272008-02-23 19:40:17 +000014#define __my_cpu_offset local_paca->data_offset
Anton Blanchard7a0268f2006-01-11 13:16:44 +110015
travis@sgi.com56f90202008-01-30 23:27:58 +010016#endif /* CONFIG_SMP */
17#endif /* __powerpc64__ */
Anton Blanchard7a0268f2006-01-11 13:16:44 +110018
Stephen Rothwell6f9aa722005-08-29 14:08:11 +100019#include <asm-generic/percpu.h>
Anton Blanchard7a0268f2006-01-11 13:16:44 +110020
21#endif /* _ASM_POWERPC_PERCPU_H_ */