1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

memory locking is now done at memory subsystem

This commit is contained in:
Steffen Vogel 2019-02-12 17:28:13 +01:00
parent ed54831e6e
commit 34a1406ec8
2 changed files with 0 additions and 15 deletions

View file

@ -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

View file

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