]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/sparc/include/asm/percpu_64.h
mtd: nand: atmel: Relax tADL_min constraint
[mirror_ubuntu-artful-kernel.git] / arch / sparc / include / asm / percpu_64.h
CommitLineData
f5e706ad
SR
1#ifndef __ARCH_SPARC64_PERCPU__
2#define __ARCH_SPARC64_PERCPU__
3
4#include <linux/compiler.h>
5
6register unsigned long __local_per_cpu_offset asm("g5");
7
8#ifdef CONFIG_SMP
9
5a5488d3
DM
10#include <asm/trap_block.h>
11
f5e706ad 12#define __per_cpu_offset(__cpu) \
5a5488d3 13 (trap_block[(__cpu)].__per_cpu_base)
f5e706ad
SR
14#define per_cpu_offset(x) (__per_cpu_offset(x))
15
16#define __my_cpu_offset __local_per_cpu_offset
17
18#else /* ! SMP */
19
f5e706ad
SR
20#endif /* SMP */
21
22#include <asm-generic/percpu.h>
23
24#endif /* __ARCH_SPARC64_PERCPU__ */