diff options
author | Rickard Green <[email protected]> | 2014-02-23 20:04:30 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2014-02-23 20:04:30 +0100 |
commit | b2017b91a5572f7bc2caf15082b4b105f3a3e21d (patch) | |
tree | 4f4ea3d654467043895a613b45b40f27f1a9d476 /erts/include | |
parent | db911c1f15372d2dadf06e8502506b0936a4fbb3 (diff) | |
download | otp-b2017b91a5572f7bc2caf15082b4b105f3a3e21d.tar.gz otp-b2017b91a5572f7bc2caf15082b4b105f3a3e21d.tar.bz2 otp-b2017b91a5572f7bc2caf15082b4b105f3a3e21d.zip |
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 |