Add support for ADJ_SETOFFSET mode

This adjtimex mode allows precise stepping of the system clock.
This commit is contained in:
Miroslav Lichvar
2011-06-09 12:55:28 +02:00
parent b088b70f82
commit 6ab3d1daa3
4 changed files with 87 additions and 15 deletions

View File

@@ -40,6 +40,7 @@ struct timex {
#define ADJ_MAXERROR 0x0004 /* maximum time error */
#define ADJ_STATUS 0x0010 /* clock status */
#define ADJ_TIMECONST 0x0020 /* pll time constant */
#define ADJ_SETOFFSET 0x0100 /* add 'time' to current time */
#define ADJ_NANO 0x2000 /* select nanosecond resolution */
#define ADJ_TICK 0x4000 /* tick value */
#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */