]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zed/Makefile.am
libspl: implement atomics in terms of atomics
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Mon, 19 Apr 2021 05:13:24 +0000 (07:13 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 05:13:24 +0000 (22:13 -0700)
commitfef8bd41fc178d7212957b611c9bc81fe10cb63e
tree3b3b31ae3fd5f1408f09bf547cb6d99767d6708b
parent50d9ff93dfdb5052e0466729d1d2e1e627a56080
libspl: implement atomics in terms of atomics

This replaces the generic libspl atomic.c atomics implementation
with one based on builtin gcc atomics.  This functionality was added
as an experimental feature in gcc 4.4.  Today even CentOS 7 ships
with gcc 4.8 as the default compiler we can make this the default.

Furthermore, the builtin atomics are as good or better than our
hand-rolled implementation so it's reasonable to drop that custom code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11904
cmd/zed/Makefile.am
config/user-libatomic.m4 [new file with mode: 0644]
config/user.m4
lib/libspl/Makefile.am
lib/libspl/asm-generic/.gitignore [deleted file]
lib/libspl/asm-generic/atomic.c [deleted file]
lib/libspl/asm-i386/atomic.S [deleted file]
lib/libspl/asm-x86_64/atomic.S [deleted file]
lib/libspl/atomic.c [new file with mode: 0644]