From 3b03c4b2bcbcf5a913a3127d2b45283540c505c3 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 2 Apr 2018 08:19:54 +0200 Subject: ipcpd: Enable locking threads to a CPU core This adds a function that locks a thread to a random core. This greatly improves performance on multi-cpu systems. There is no portable way to do this, this only implements it for GNU/Linux. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/config.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipcpd/config.h.in') diff --git a/src/ipcpd/config.h.in b/src/ipcpd/config.h.in index a4893f50..de7d4498 100644 --- a/src/ipcpd/config.h.in +++ b/src/ipcpd/config.h.in @@ -35,7 +35,6 @@ #define IPCP_MIN_THREADS @IPCP_MIN_THREADS@ #define IPCP_ADD_THREADS @IPCP_ADD_THREADS@ - #cmakedefine HAVE_LIBGCRYPT /* normal IPCP */ @@ -45,6 +44,7 @@ #define IPCP_SCHED_THR_MUL @IPCP_SCHED_THR_MUL@ #define PFT_SIZE @PFT_SIZE@ +#cmakedefine DISABLE_CORE_LOCK #cmakedefine IPCP_FLOW_STATS /* udp */ -- cgit v1.2.3