diff --git a/storage/innobase/include/ut0counter.h b/storage/innobase/include/ut0counter.h index fe0f36dfff2..63a133a175d 100644 --- a/storage/innobase/include/ut0counter.h +++ b/storage/innobase/include/ut0counter.h @@ -32,7 +32,11 @@ Created 2012/04/12 by Sunny Bains #include "os0thread.h" /** CPU cache line size */ +#ifdef __powerpc__ +#define CACHE_LINE_SIZE 128 +#else #define CACHE_LINE_SIZE 64 +#endif /** Default number of slots to use in ib_counter_t */ #define IB_N_SLOTS 64 diff --git a/storage/xtradb/include/ut0counter.h b/storage/xtradb/include/ut0counter.h index fe0f36dfff2..63a133a175d 100644 --- a/storage/xtradb/include/ut0counter.h +++ b/storage/xtradb/include/ut0counter.h @@ -32,7 +32,11 @@ Created 2012/04/12 by Sunny Bains #include "os0thread.h" /** CPU cache line size */ +#ifdef __powerpc__ +#define CACHE_LINE_SIZE 128 +#else #define CACHE_LINE_SIZE 64 +#endif /** Default number of slots to use in ib_counter_t */ #define IB_N_SLOTS 64 diff --git a/storage/xtradb/srv/srv0srv.cc b/storage/xtradb/srv/srv0srv.cc index 03788d753d0..e0e15202991 100644 --- a/storage/xtradb/srv/srv0srv.cc +++ b/storage/xtradb/srv/srv0srv.cc @@ -504,7 +504,11 @@ UNIV_INTERN ulint srv_available_undo_logs = 0; /* Ensure status variables are on separate cache lines */ +#ifdef __powerpc__ +#define CACHE_LINE_SIZE 128 +#else #define CACHE_LINE_SIZE 64 +#endif #define CACHE_ALIGNED __attribute__ ((aligned (CACHE_LINE_SIZE))) UNIV_INTERN byte