Skip to content
  • Stefan Roese's avatar
    time: Import time_after64() and friends from Linux · e29178ed
    Stefan Roese authored and Tom Rini's avatar Tom Rini committed
    
    
    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: default avatarStefan Roese <sr@denx.de>
    Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
    e29178ed