mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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 <ivprusov@salutedevices.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7667bdeb0e
commit
d7ce04c7f4
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue