1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

unr64: use locked variant if not __LP64__

The current ifdefs are not sufficient to distinguish 32- and 64- bit
variants, which results e.g. in powerpc64 not using atomics.

While some 32-bit archs provide 64-bit atomics, there is no huge advantage
of using them on these platforms.

Reported by:	many
Suggested by:	jhb
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mateusz Guzik 2018-12-07 12:05:11 +00:00
parent 2e2b365e47
commit afacf95d5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341682

View File

@ -523,7 +523,7 @@ int alloc_unr_specific(struct unrhdr *uh, u_int item);
int alloc_unrl(struct unrhdr *uh);
void free_unr(struct unrhdr *uh, u_int item);
#if defined(__mips__) || defined(__powerpc__)
#ifndef __LP64__
#define UNR64_LOCKED
#endif