Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 2e1638115f0f924ee8235eee9265047054c15cfd Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 |
| 4 | Subject: [PATCH 04/24] nativesdk-glibc: Allow 64 bit atomics for x86 |
| 5 | |
| 6 | The fix consist of allowing 64bit atomic ops for x86. |
| 7 | This should be safe for i586 and newer CPUs. |
| 8 | It also makes the synchronization more efficient. |
| 9 | |
| 10 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> |
| 11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | sysdeps/i386/atomic-machine.h | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/sysdeps/i386/atomic-machine.h b/sysdeps/i386/atomic-machine.h |
| 18 | index 59f3d34..6f6b7ff 100644 |
| 19 | --- a/sysdeps/i386/atomic-machine.h |
| 20 | +++ b/sysdeps/i386/atomic-machine.h |
| 21 | @@ -54,7 +54,7 @@ typedef uintmax_t uatomic_max_t; |
| 22 | # endif |
| 23 | #endif |
| 24 | |
| 25 | -#define __HAVE_64B_ATOMICS 0 |
| 26 | +#define __HAVE_64B_ATOMICS 1 |
| 27 | #define USE_ATOMIC_COMPILER_BUILTINS 0 |
| 28 | |
| 29 | |
| 30 | -- |
| 31 | 2.6.4 |
| 32 | |