]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pps: generators: Use ktime_get_real_ts64() instead of ktime_get_snapshot()
authorThomas Gleixner <tglx@kernel.org>
Fri, 29 May 2026 19:59:59 +0000 (21:59 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 2 Jun 2026 09:39:58 +0000 (11:39 +0200)
commitfe1159fe49b40f73de88d2c29200c813952e061f
tree1246f40d4bc062d3d9c0e23d8ec2b5bf8a1d39e3
parentef22786707e3967b539c3b1e6b5c7ea8b408430f
pps: generators: Use ktime_get_real_ts64() instead of ktime_get_snapshot()

There is no reason to use the more complex ktime_get_snapshot() for
retrieving CLOCK_REALTIME.

Just use ktime_get_real_ts64(), which avoids the extra timespec64
conversion as a bonus.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Arthur Kiyanovski <akiyano@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Link: https://patch.msgid.link/20260529195557.074439049@kernel.org
drivers/pps/generators/pps_gen-dummy.c
drivers/pps/generators/pps_gen_tio.c