summaryrefslogtreecommitdiff
path: root/storage/perfschema
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-05-03 12:21:17 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-06-07 13:02:31 +0400
commit9de6708390885415dc6737fcdb96a53ce565a7c2 (patch)
tree6a3d770bf5c5f83f257c036c834a88ded55d5222 /storage/perfschema
parent49ad08450369dbf7ee85759786b6b844e1460471 (diff)
downloadmariadb-git-9de6708390885415dc6737fcdb96a53ce565a7c2.tar.gz
MDEV-9857 - CACHE_LINE_SIZE in innodb should be 128 on POWER
Replaced hard-coded cache line size. Changes based on Daniel Black's work.
Diffstat (limited to 'storage/perfschema')
-rw-r--r--storage/perfschema/pfs_global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/perfschema/pfs_global.h b/storage/perfschema/pfs_global.h
index f3326c5589f..7373f459599 100644
--- a/storage/perfschema/pfs_global.h
+++ b/storage/perfschema/pfs_global.h
@@ -31,7 +31,7 @@ extern bool pfs_initialized;
extern size_t pfs_allocated_memory;
#if defined(HAVE_POSIX_MEMALIGN) || defined(HAVE_MEMALIGN) || defined(HAVE_ALIGNED_MALLOC)
-#define PFS_ALIGNEMENT 64
+#define PFS_ALIGNEMENT CPU_LEVEL1_DCACHE_LINESIZE
#define PFS_ALIGNED MY_ALIGNED(PFS_ALIGNEMENT)
#else
/*