]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc/time: drop invocation of gettimeofday system call
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 20 Dec 2025 13:55:48 +0000 (14:55 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 4 Jan 2026 09:28:59 +0000 (10:28 +0100)
commitb8f4f5d1b99e2ae73fd448e9bbd16dc244e6586c
tree36680193640b52de83e3fe89af3251caf8ddeebe
parent668e43737279284318064bdd4eab689a3aaed652
tools/nolibc/time: drop invocation of gettimeofday system call

This invocation uses libc types with a system call. While this works
now, upcoming changes to 'struct timeval' would require type
conversions. If types are converted anyways, the clock_gettime() based
fallback can be used everywhere, simplifying the code.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251220-nolibc-uapi-types-v3-4-c662992f75d7@weissschuh.net
tools/include/nolibc/sys/time.h