]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ptp: ptp_vmclock: return TAI not UTC
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 30 Jan 2026 17:36:06 +0000 (17:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 02:06:01 +0000 (18:06 -0800)
commit562f59fe32914a10af8554634866bd0b56257060
tree7ea3bf188ab00d58af414ecd44794e18061011c8
parentac1e7404924cb4a1ab2993e64151e2ad2f461ab3
ptp: ptp_vmclock: return TAI not UTC

To output UTC would involve complex calculations about whether the time
elapsed since the reference time has crossed the end of the month when
a leap second takes effect. I've prototyped that, but it made me sad.

Much better to report TAI, which is what PHCs should do anyway.
And much much simpler.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Babis Chalios <bchalios@amazon.es>
Tested-by: Takahiro Itazuri <itazur@amazon.com>
Link: https://patch.msgid.link/20260130173704.12575-8-itazur@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_vmclock.c