I am trying to synchronize imx6 cpu clock with the one of a NTP server using NTP protocol. It seems to work using settimeofday (step mode), however I need to implement the slew mode feature (using adjtime) in order to avoid the clock to be suddenly changed. The kernel discipline is performed with the adjtimex syscall. Can someone confirm that this feature cannot work with imx6 hardware?
Analysing the source code, I understand the tick timer is used to make the cpu clock go faster or slower. I suppose the issue is because the clock_event_device is registered with the CLOCK_EVT_FEAT_ONESHOT feature instead of CLOCK_EVT_FEAT_PERIODIC in the tick timer driver (/arch/arm/mach-imx/time.c). The timer is operating in free-running mode.