]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/atomic/src/lockpool.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / atomic / src / lockpool.cpp
index b669b861a445678fa7ed58cfb9e13a8e78f5ba86..a1292fa7bb78b45a2df12e740b29bb1ba9a594b8 100644 (file)
@@ -42,9 +42,15 @@ namespace detail {
 
 namespace {
 
-// This seems to be the maximum across all modern CPUs
+// Cache line size, in bytes
 // NOTE: This constant is made as a macro because some compilers (gcc 4.4 for one) don't allow enums or namespace scope constants in alignment attributes
+#if defined(__s390__) || defined(__s390x__)
+#define BOOST_ATOMIC_CACHE_LINE_SIZE 256
+#elif defined(powerpc) || defined(__powerpc__) || defined(__ppc__)
+#define BOOST_ATOMIC_CACHE_LINE_SIZE 128
+#else
 #define BOOST_ATOMIC_CACHE_LINE_SIZE 64
+#endif
 
 #if defined(BOOST_ATOMIC_USE_PTHREAD)
 typedef pthread_mutex_t lock_type;