]> git.baikalelectronics.ru Git - uboot.git/commit
time: Import time_after64() and friends from Linux
authorStefan Roese <sr@denx.de>
Fri, 2 Sep 2022 11:57:47 +0000 (13:57 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 13 Sep 2022 20:01:43 +0000 (16:01 -0400)
commit64d988ca8e269eb26f454d682c04643559bb6039
treea71985e1cad0e9eccf2a6435547287f4545865fd
parent224f44219a7835f321a769b7c5cbe5c65fd1b98d
time: Import time_after64() and friends from Linux

When using us times it makes sense to use 64bit variables for storage.
The currently implemented time_after() and friends functions only handle
32bit variables. This patch now includes the 64bit variants as well
from Linux. This will be used by the upcoming generic cyclic function
infrastructure.

These macros were copied from include/linux/jiffies.h of Linux 5.18.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/time.h