aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/include/lock.h
blob: f66ec168875bb0d5825b018241af8db744f0794f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */

#ifndef KMI_RISCV_LOCK_H
#define KMI_RISCV_LOCK_H
/**
 * @file lock.h
 * riscv64 implementation of arch-specific lock behaviour, currently only \ref
 * optional_pause().
 */

/**
 * riscv64 does not have a way to inform the cpu of a spinlock (at least at the
 * moment, it may be added in as a hint later on)
 */
#define optional_pause()

#endif /* KMI_RISCV_LOCK_H */