Anton Blanchard | 7a0268f | 2006-01-11 13:16:44 +1100 | [diff] [blame] | 1 | #ifndef _ASM_POWERPC_PERCPU_H_ |
| 2 | #define _ASM_POWERPC_PERCPU_H_ |
| 3 | #ifdef __powerpc64__ |
Anton Blanchard | 7a0268f | 2006-01-11 13:16:44 +1100 | [diff] [blame] | 4 | |
| 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 Dickins | 1e83527 | 2008-02-23 19:40:17 +0000 | [diff] [blame] | 14 | #define __my_cpu_offset local_paca->data_offset |
Anton Blanchard | 7a0268f | 2006-01-11 13:16:44 +1100 | [diff] [blame] | 15 | |
travis@sgi.com | 56f9020 | 2008-01-30 23:27:58 +0100 | [diff] [blame] | 16 | #endif /* CONFIG_SMP */ |
| 17 | #endif /* __powerpc64__ */ |
Anton Blanchard | 7a0268f | 2006-01-11 13:16:44 +1100 | [diff] [blame] | 18 | |
Stephen Rothwell | 6f9aa72 | 2005-08-29 14:08:11 +1000 | [diff] [blame] | 19 | #include <asm-generic/percpu.h> |
Anton Blanchard | 7a0268f | 2006-01-11 13:16:44 +1100 | [diff] [blame] | 20 | |
| 21 | #endif /* _ASM_POWERPC_PERCPU_H_ */ |