[v1 05/24] eal/loongarch: add spinlock operations for LoongArch
Stephen Hemminger
stephen at networkplumber.org
Sat May 28 17:54:10 CEST 2022
On Sat, 28 May 2022 17:32:52 +0800
Min Zhou <zhoumin at loongson.cn> wrote:
> This patch adds spinlock operations for LoongArch architecture.
> These implementations refer to GLIBC pthread_spin_xxlock(). The
> underlying implementation is based on LoongArch atomic
> instructions (ie, AMSWAP_DB.W).
>
> Signed-off-by: Min Zhou <zhoumin at loongson.cn>
If you supported std atomics, then the g eneric code
could work here.
More information about the dev
mailing list