sys_timex: add support for ntp_adjtime() via privops
This commit is contained in:
parent
3cb0351aff
commit
12ee4bf6ac
1 changed files with 6 additions and 0 deletions
|
@ -30,10 +30,15 @@
|
||||||
#include "sysincl.h"
|
#include "sysincl.h"
|
||||||
|
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
|
#include "privops.h"
|
||||||
#include "sys_generic.h"
|
#include "sys_generic.h"
|
||||||
#include "sys_timex.h"
|
#include "sys_timex.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
|
|
||||||
|
#ifdef PRIVOPS_ADJUSTTIMEX
|
||||||
|
#define NTP_ADJTIME PRV_AdjustTimex
|
||||||
|
#define NTP_ADJTIME_NAME "ntp_adjtime"
|
||||||
|
#else
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
#define NTP_ADJTIME adjtimex
|
#define NTP_ADJTIME adjtimex
|
||||||
#define NTP_ADJTIME_NAME "adjtimex"
|
#define NTP_ADJTIME_NAME "adjtimex"
|
||||||
|
@ -41,6 +46,7 @@
|
||||||
#define NTP_ADJTIME ntp_adjtime
|
#define NTP_ADJTIME ntp_adjtime
|
||||||
#define NTP_ADJTIME_NAME "ntp_adjtime"
|
#define NTP_ADJTIME_NAME "ntp_adjtime"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Maximum frequency offset accepted by the kernel (in ppm) */
|
/* Maximum frequency offset accepted by the kernel (in ppm) */
|
||||||
#define MAX_FREQ 500.0
|
#define MAX_FREQ 500.0
|
||||||
|
|
Loading…
Reference in a new issue