clockadj: make Doxygen comment by using two stars.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
clockadj: remove useless clockid parameter.

The clockid parameter to the function to get the system clock's maximum
adjustment is redundant, so let us just remove it.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
phc2sys: Read maximum frequency adjustment.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
phc2sys: Don't try PTP_SYS_OFFSET with system clock as source.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
phc2sys: Use phc_open().

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
phc2sys: Add option to set domain number.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
clockadj: Remove clkid parameter from set_leap function.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Let kernel synchronize RTC to system clock.

Reset the STA_UNSYNC flag and maxerror value with every frequency update
to let the kernel synchronize the RTC to the system clock (11 minute mode).

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>