summaryrefslogtreecommitdiff
path: root/src/ipcpd/config.h.in
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2018-04-02 08:19:54 +0200
committerSander Vrijders <[email protected]>2018-04-05 10:31:52 +0200
commit3b03c4b2bcbcf5a913a3127d2b45283540c505c3 (patch)
treefc18ab41a741f7d6ce3b05145558a1cf83c422f8 /src/ipcpd/config.h.in
parentb81d5a327d272db9b511217665b5febceccb725d (diff)
downloadouroboros-3b03c4b2bcbcf5a913a3127d2b45283540c505c3.tar.gz
ouroboros-3b03c4b2bcbcf5a913a3127d2b45283540c505c3.zip
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 <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/config.h.in')
-rw-r--r--src/ipcpd/config.h.in2
1 files changed, 1 insertions, 1 deletions
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 */