diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-05-03 12:21:17 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-06-07 13:02:31 +0400 |
commit | 9de6708390885415dc6737fcdb96a53ce565a7c2 (patch) | |
tree | 6a3d770bf5c5f83f257c036c834a88ded55d5222 /include | |
parent | 49ad08450369dbf7ee85759786b6b844e1460471 (diff) | |
download | mariadb-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 'include')
-rw-r--r-- | include/lf.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/lf.h b/include/lf.h index 19bdafce647..1825de62b43 100644 --- a/include/lf.h +++ b/include/lf.h @@ -68,11 +68,8 @@ typedef struct { void *purgatory; uint32 purgatory_count; uint32 volatile link; -/* we want sizeof(LF_PINS) to be 128 to avoid false sharing */ - char pad[128-sizeof(uint32)*2 - -sizeof(LF_PINBOX *) - -sizeof(void*) - -sizeof(void *)*(LF_PINBOX_PINS+1)]; + /* avoid false sharing */ + char pad[CPU_LEVEL1_DCACHE_LINESIZE]; } LF_PINS; /* compile-time assert to make sure we have enough pins. */ |