sys: add null driver

Add a new clock driver that doesn't actually try to adjust the clock.
It allows chronyd to run without the capability to adjust/set the system
clock, e.g. in some containers. It can be enabled by the -x option.
This commit is contained in:
Miroslav Lichvar
2017-03-09 18:16:56 +01:00
parent 0ff449e6a6
commit c44346096c
7 changed files with 202 additions and 5 deletions

2
sys.h
View File

@@ -30,7 +30,7 @@
#define GOT_SYS_H
/* Called at the start of the run to do initialisation */
extern void SYS_Initialise(void);
extern void SYS_Initialise(int clock_control);
/* Called at the end of the run to do final clean-up */
extern void SYS_Finalise(void);