[PATCH v3 1/8] time: Import time_after64() and friends from Linux

Simon Glass sjg at chromium.org
Fri Aug 5 18:48:28 CEST 2022


On Fri, 5 Aug 2022 at 08:26, Stefan Roese <sr at denx.de> wrote:
>
> 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 at denx.de>
> ---
> v3:
> - No change
> v2:
> - No change
>
>  include/time.h | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list