diff options
author | Rickard Green <[email protected]> | 2014-02-24 14:14:24 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2014-02-24 14:14:24 +0100 |
commit | ce614726e9fb19b462ed41a2f020b68ef98cd532 (patch) | |
tree | c61534690567d2ad32671e85d46aedbc02041718 /erts/include | |
parent | 15c4e79462cd890c2782fc14c9ac9b8cf99ee46f (diff) | |
parent | b2017b91a5572f7bc2caf15082b4b105f3a3e21d (diff) | |
download | otp-ce614726e9fb19b462ed41a2f020b68ef98cd532.tar.gz otp-ce614726e9fb19b462ed41a2f020b68ef98cd532.tar.bz2 otp-ce614726e9fb19b462ed41a2f020b68ef98cd532.zip |
Merge branch 'rickard/assumed-cacheline-size/OTP-11742'
* rickard/assumed-cacheline-size/OTP-11742:
Introduce configure option --with-assumed-cache-line-size=SIZE
Diffstat (limited to 'erts/include')
-rw-r--r-- | erts/include/internal/ethread.h | 2 | ||||
-rw-r--r-- | erts/include/internal/ethread_header_config.h.in | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h index 38b8e9e9b6..3a676e2a36 100644 --- a/erts/include/internal/ethread.h +++ b/erts/include/internal/ethread.h @@ -60,7 +60,7 @@ #endif /* Assume 64-byte cache line size */ -#define ETHR_CACHE_LINE_SIZE 64 +#define ETHR_CACHE_LINE_SIZE ASSUMED_CACHE_LINE_SIZE #define ETHR_CACHE_LINE_MASK (ETHR_CACHE_LINE_SIZE - 1) #define ETHR_CACHE_LINE_ALIGN_SIZE(SZ) \ diff --git a/erts/include/internal/ethread_header_config.h.in b/erts/include/internal/ethread_header_config.h.in index dd3599f86d..b36322490a 100644 --- a/erts/include/internal/ethread_header_config.h.in +++ b/erts/include/internal/ethread_header_config.h.in @@ -235,3 +235,5 @@ /* Define if you want to turn on extra sanity checking in the ethread library */ #undef ETHR_XCHK +/* Assumed cache-line size (in bytes) */ +#undef ASSUMED_CACHE_LINE_SIZE |