]> git.pld-linux.org Git - packages/accelio.git/blame - accelio-sse.patch
- adjusted fio patch for fio 3+ (with nanosecond precision); release 4
[packages/accelio.git] / accelio-sse.patch
CommitLineData
08f63b58
JB
1"SPINLOCK_NG" is x86-specific;
2also, use __builtin_ia32_pause directly, as _mm_pause used to be inside target("sse") pragma until gcc 5.?
3--- accelio-1.6/src/usr/linux/kernel.h.orig 2016-03-28 14:58:45.000000000 +0200
4+++ accelio-1.6/src/usr/linux/kernel.h 2016-04-10 21:34:41.710405838 +0200
5@@ -89,7 +89,9 @@
6
7 typedef volatile int spinlock_t;
8
9+#if defined(__i386__) || defined(__x86_64__)
10 #define SPINLOCK_NG
11+#endif
12
13 #ifndef SPINLOCK_NG
14
15@@ -146,7 +148,7 @@
16 {
17 while (__sync_lock_test_and_set(spinlock, 1))
18 while (*spinlock)
19- _mm_pause();
20+ __builtin_ia32_pause();
21 }
22
23 static inline int spin_try_lock(spinlock_t* spinlock)
This page took 0.069623 seconds and 4 git commands to generate.