From 34a1406ec85de93fb4021204c151ca55a7331e23 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 12 Feb 2019 17:28:13 +0100 Subject: [PATCH] memory locking is now done at memory subsystem --- common/include/villas/kernel/rt.hpp | 2 -- common/lib/kernel/rt.cpp | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/common/include/villas/kernel/rt.hpp b/common/include/villas/kernel/rt.hpp index a3f4ebf3c..5ac32bf87 100644 --- a/common/include/villas/kernel/rt.hpp +++ b/common/include/villas/kernel/rt.hpp @@ -38,8 +38,6 @@ int setAffinity(int affinity); int setPriority(int priority); -int lockMemory(); - /** Checks for realtime (PREEMPT_RT) patched kernel. * * See https://rt.wiki.kernel.org diff --git a/common/lib/kernel/rt.cpp b/common/lib/kernel/rt.cpp index bb21b9995..773509324 100644 --- a/common/lib/kernel/rt.cpp +++ b/common/lib/kernel/rt.cpp @@ -78,19 +78,6 @@ int init(int priority, int affinity) #ifdef __linux__ -int lockMemory() -{ - int ret; - -#ifdef _POSIX_MEMLOCK - ret = mlockall(MCL_CURRENT | MCL_FUTURE); - if (ret) - throw SystemError("Failed to lock memory"); -#endif - - return 0; -} - int setAffinity(int affinity) { char isolcpus[255];