License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / sparc / include / asm / percpu_64.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f5e706ad
SR
2#ifndef __ARCH_SPARC64_PERCPU__
3#define __ARCH_SPARC64_PERCPU__
4
5#include <linux/compiler.h>
6
7register unsigned long __local_per_cpu_offset asm("g5");
8
9#ifdef CONFIG_SMP
10
5a5488d3
DM
11#include <asm/trap_block.h>
12
f5e706ad 13#define __per_cpu_offset(__cpu) \
5a5488d3 14 (trap_block[(__cpu)].__per_cpu_base)
f5e706ad
SR
15#define per_cpu_offset(x) (__per_cpu_offset(x))
16
17#define __my_cpu_offset __local_per_cpu_offset
18
19#else /* ! SMP */
20
f5e706ad
SR
21#endif /* SMP */
22
23#include <asm-generic/percpu.h>
24
25#endif /* __ARCH_SPARC64_PERCPU__ */