From 5a1d0be3233015339ce8c376a360e1bce7bc767e Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sat, 19 Dec 2009 21:36:44 +0000 Subject: [PATCH] * Use the safe default cacheline settings for all platforms for now. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1116 e378c898-3ddf-0310-93e7-cc216c733640 --- scripts/common.m4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/common.m4 b/scripts/common.m4 index 5dc40194..197bf997 100644 --- a/scripts/common.m4 +++ b/scripts/common.m4 @@ -192,8 +192,13 @@ AC_DEFUN([TORRENT_CHECK_CACHELINE], [ ]], [ AC_MSG_RESULT(found builtin) - AC_DEFINE(LT_SMP_CACHE_BYTES, SMP_CACHE_BYTES, Largest L1 cache size we know of, should work on all archs.) - AC_DEFINE(lt_cacheline_aligned, __cacheline_aligned, LibTorrent defined cacheline aligned.) +dnl AC_DEFINE(LT_SMP_CACHE_BYTES, SMP_CACHE_BYTES, Largest L1 cache size we know of, should work on all archs.) +dnl AC_DEFINE(lt_cacheline_aligned, __cacheline_aligned, LibTorrent defined cacheline aligned.) + +dnl Need to fix this so that it uses the stuff defined by the system. + + AC_DEFINE(LT_SMP_CACHE_BYTES, 128, Largest L1 cache size we know of, should work on all archs.) + AC_DEFINE(lt_cacheline_aligned, __attribute__((__aligned__(LT_SMP_CACHE_BYTES))), LibTorrent defined cacheline aligned.) ], [ AC_MSG_RESULT(using default 128 bytes) AC_DEFINE(LT_SMP_CACHE_BYTES, 128, Largest L1 cache size we know of, should work on all archs.)