Files
u-boot/include
Masahiro Yamada 21cdd133ca time: import time_after, time_before and friends from Linux
It is not safe to compare timer values directly.

On 32-bit systems, for example, timer_get_us() wraps around every
72 min. (2 ^ 32 / 1000000 =~ 4295 sec =~ 72 min).  Depending on
the get_ticks() implementation, it may wrap more frequently.
The 72 min might be possible on the use of U-Boot.

Let's borrow time_after, time_before, and friends to solve the
wrap-around problem.

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

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-01-14 16:46:30 -05:00
..
2016-04-01 17:18:12 -04:00
2016-12-03 13:21:21 -05:00
2016-08-20 11:35:07 -04:00
2016-03-22 12:16:13 -04:00
2016-03-24 09:47:43 +01:00
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
2016-12-03 13:21:23 -05:00
2016-10-19 09:01:51 +02:00
2016-11-14 23:24:03 +01:00
2016-05-03 17:52:11 -05:00
2016-12-08 10:36:22 -06:00
2016-07-22 09:52:59 -04:00
2016-06-10 13:44:58 -07:00
2016-10-23 12:08:48 -07:00
2016-06-19 17:05:55 -06:00
2016-06-19 17:05:55 -06:00
2016-03-08 15:01:47 -05:00
2016-08-12 11:01:22 -06:00
2016-03-15 15:19:23 -04:00
2016-08-17 10:25:35 +09:00
2016-10-19 09:01:52 +02:00
2016-11-19 08:41:44 +05:30
2017-01-04 16:37:41 +01:00
2016-05-26 20:48:31 -06:00
2016-09-26 13:24:43 -04:00
2016-05-17 09:54:43 -06:00
2016-05-02 18:37:09 -04:00
2016-10-12 10:56:51 +08:00
2016-10-23 18:33:48 -04:00
2016-10-31 10:13:17 -04:00