mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] include/linux/time.h: define USEC_PER_SEC and friends
Date: Mon, 17 Dec 2018 10:48:02 +0100	[thread overview]
Message-ID: <20181217094802.dsb2whfrmf5eokjd@pengutronix.de> (raw)
In-Reply-To: <20181214152305.30412-1-a.fatoum@pengutronix.de>

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@pengutronix.de>
> ---
>  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@lists.infradead.org
> 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2018-12-17  9:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-14 15:23 Ahmad Fatoum
2018-12-14 15:23 ` [PATCH 2/2] net: fec_imx: fix timeout off by *1000 error Ahmad Fatoum
2018-12-14 15:29   ` Ahmad Fatoum
2018-12-17  9:50     ` Sascha Hauer
2018-12-17  9:48 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181217094802.dsb2whfrmf5eokjd@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox