Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ntp: Use ktime_get_ntp_seconds()

Use ktime_get_ntp_seconds() to prepare for auxiliary clocks so that
the readout becomes per timekeeper.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250519083026.472512636@linutronix.de


+2 -2
+2 -2
kernel/time/ntp.c
··· 303 303 * Select how the frequency is to be controlled 304 304 * and in which mode (PLL or FLL). 305 305 */ 306 - real_secs = __ktime_get_real_seconds(); 306 + real_secs = ktime_get_ntp_seconds(ntpdata - tk_ntp_data); 307 307 secs = (long)(real_secs - ntpdata->time_reftime); 308 308 if (unlikely(ntpdata->time_status & STA_FREQHOLD)) 309 309 secs = 0; ··· 710 710 * reference time to current time. 711 711 */ 712 712 if (!(ntpdata->time_status & STA_PLL) && (txc->status & STA_PLL)) 713 - ntpdata->time_reftime = __ktime_get_real_seconds(); 713 + ntpdata->time_reftime = ktime_get_ntp_seconds(ntpdata - tk_ntp_data); 714 714 715 715 /* only set allowed bits */ 716 716 ntpdata->time_status &= STA_RONLY;