Tool/software: Linux
Just a question out of curiosity. I know that there are wall time (main system timeline) and two mechanisms of timekeeping in modern linux kernel - timewheel and hrtimers. AM3358 SoC has seven DMTimers, the question is what is the source of wall time in AM3358, I mean for example when we print 'date' command it has to read the value of some register from somewhere with the number of cycles passed from the start and then convert it to nanoseconds, so what is the source of that register on AM335x, is it one of DMTimers? Can we control that clock source? Are there some bindings for that clock source in the device tree? Also when ptp client's adjusting algorithm is working (ptp4l stack), does it just add the calculated Δt value to source clock register every time when the wall time is accessed (for example by gettimeofday() function) without modifying source clock register itself? Are hrtimers also use DMTimers, and if they do which one? Thanks!)