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];