mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:45:07 -05:00
Add mlockall and SCHED_FIFO support
The attached patch adds support for mlockall() as well as the SCHED_FIFO real-time scheduler. It should result in reduced (and more consistent) latency. Usage is documented in all the documents.
This commit is contained in:
committed by
Miroslav Lichvar
parent
cdc22df903
commit
35e662d810
17
sys.c
17
sys.c
@@ -106,6 +106,23 @@ void SYS_DropRoot(char *user)
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
void SYS_SetScheduler(int SchedPriority)
|
||||
{
|
||||
#if defined(LINUX) && defined(HAVE_SCHED_SETSCHEDULER)
|
||||
SYS_Linux_SetScheduler(SchedPriority);
|
||||
#endif
|
||||
;;
|
||||
}
|
||||
|
||||
void SYS_MemLockAll(int LockAll)
|
||||
{
|
||||
#if defined(LINUX) && defined(HAVE_MLOCKALL)
|
||||
SYS_Linux_MemLockAll(LockAll);
|
||||
#endif
|
||||
;;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user