x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / sparc / include / asm / percpu_64.h
blob007aafb4ae97e4914dbfeba584795680d41b6adf
1 #ifndef __ARCH_SPARC64_PERCPU__
2 #define __ARCH_SPARC64_PERCPU__
4 #include <linux/compiler.h>
6 register unsigned long __local_per_cpu_offset asm("g5");
8 #ifdef CONFIG_SMP
10 #include <asm/trap_block.h>
12 #define __per_cpu_offset(__cpu) \
13 (trap_block[(__cpu)].__per_cpu_base)
14 #define per_cpu_offset(x) (__per_cpu_offset(x))
16 #define __my_cpu_offset __local_per_cpu_offset
18 #else /* ! SMP */
20 #endif /* SMP */
22 #include <asm-generic/percpu.h>
24 #endif /* __ARCH_SPARC64_PERCPU__ */