From 1a79eec876bd7b643e65c555343c349b65310777 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 4 Jun 2025 16:50:13 -0700 Subject: [PATCH] remove LT_SMP_CACHE_BYTES This is used by the library, not here. Signed-off-by: Rosen Penev --- configure.ac | 1 - scripts/common.m4 | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/configure.ac b/configure.ac index 3cf9d023..d71af0a7 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,6 @@ LIBS="$PTHREAD_LIBS $CURSES_LIB $CURSES_LIBS $DEPENDENCIES_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS $DEPENDENCIES_CFLAGS $CURSES_CFLAGS" CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS $DEPENDENCIES_CFLAGS $CURSES_CFLAGS" -TORRENT_CHECK_CACHELINE() TORRENT_CHECK_POPCOUNT() AC_CONFIG_FILES([ diff --git a/scripts/common.m4 b/scripts/common.m4 index 480bdefc..4c88bdc3 100644 --- a/scripts/common.m4 +++ b/scripts/common.m4 @@ -156,26 +156,6 @@ AC_DEFUN([TORRENT_CHECK_POPCOUNT], [ ]) ]) -AC_DEFUN([TORRENT_CHECK_CACHELINE], [ - AC_MSG_CHECKING(for cacheline) - - AC_COMPILE_IFELSE([AC_LANG_SOURCE([ - #include - #include - void* vptr __cacheline_aligned; - void f() { posix_memalign(&vptr, SMP_CACHE_BYTES, 42); } - ])], - [ - AC_MSG_RESULT(found builtin) -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_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.) - ]) -]) - AC_DEFUN([TORRENT_CHECK_ALIGNED], [ AC_MSG_CHECKING(the byte alignment)