On Fri, Dec 14, 2018 at 04:23:05PM +0100, Ahmad Fatoum wrote: > Linux has them in include/linux/time64.h and they are useful for > making (especially microsecond) use readable such as in read*_poll_timeout. > > Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > include/linux/time.h | 6 ++++++ > 1 file changed, 6 insertions(+) Applied, thanks Sascha > > diff --git a/include/linux/time.h b/include/linux/time.h > index 3a1bb50020fd..7903139a65b2 100644 > --- a/include/linux/time.h > +++ b/include/linux/time.h > @@ -3,7 +3,13 @@ > > #include <linux/types.h> > > +#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 FSEC_PER_SEC 1000000000000000LL > > struct timespec { > time_t tv_sec; /* seconds */ > -- > 2.19.1 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox