aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/relaxed.h
blob: 08a217934c414afedca28caac2034c251f3d60fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * arm64/include/asm/relaxed.h
 *
 * Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _ASM_RELAXED_H_
#define _ASM_RELAXED_H_

#include <asm/atomic.h>

#ifndef cpu_relaxed_read_short
#define cpu_relaxed_read_short(p)	ldax16(p)
#endif

#ifndef cpu_relaxed_read
#define cpu_relaxed_read(p)		ldax32(p)
#endif

#ifndef cpu_relaxed_read_long
#define cpu_relaxed_read_long(p)	ldax64((u64 *)p)
#endif

#include <asm-generic/relaxed.h>
#endif /*_ASM_RELAXED_H_*/