From: Igor Prusov Date: Thu, 9 Nov 2023 17:10:02 +0000 (+0300) Subject: linux/time.h: Add Linux time conversion defines X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=d7ce04c7f4cbae9608287ebd810a411944efff9a;p=u-boot.git linux/time.h: Add Linux time conversion defines Currently there are no defines for time conversion in time.h, which leads to drivers declaring those locally or not using defines at all, so add them from Linux. Signed-off-by: Igor Prusov Reviewed-by: Simon Glass --- diff --git a/include/linux/time.h b/include/linux/time.h index 14ff5b6f48..14a144d9c9 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -11,6 +11,15 @@ #define _REENT_ONLY +#define MSEC_PER_SEC 1000L +#define USEC_PER_MSEC 1000L +#define NSEC_PER_USEC 1000L +#define NSEC_PER_MSEC 1000000L +#define USEC_PER_SEC 1000000L +#define NSEC_PER_SEC 1000000000L +#define PSEC_PER_SEC 1000000000000LL +#define FSEC_PER_SEC 1000000000000000LL + #define SECSPERMIN 60L #define MINSPERHOUR 60L #define HOURSPERDAY 24L