summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-01-07 15:39:11 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-01-07 15:39:11 -0500
commita2beb5b3d1d5848f85d78d8365be70bdb0337603 (patch)
tree88ef58bfd51b7febe3df46286eb002d516a4d918 /doc/src
parent4e88523c7c0b945a2188af7163a029d53003dd3a (diff)
Use __sync_lock_test_and_set() for spinlocks on ARM, if available.
Historically we've used the SWPB instruction for TAS() on ARM, but this is deprecated and not available on ARMv6 and later. Instead, make use of a GCC builtin if available. We'll still fall back to SWPB if not, so as not to break existing ports using older GCC versions. Eventually we might want to try using __sync_lock_test_and_set() on some other architectures too, but for now that seems to present only risk and not reward. Back-patch to all supported versions, since people might want to use any of them on more recent ARM chips. Martin Pitt
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions