mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Matt Fleming <mattjfleming@googlemail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ktime_set() does not check for nanoseconds > one second
Date: Mon, 1 Sep 2008 15:16:51 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.1.10.0809011515060.3243@apollo.tec.linutronix.de> (raw)
In-Reply-To: <5ff4a1e50809010611x3d8940e0n282da0b1ec5b321b@mail.gmail.com>

On Mon, 1 Sep 2008, Matt Fleming wrote:

> 2008/9/1 Thomas Gleixner <tglx@linutronix.de>:
> >
> > Won't work with arbitrary numbers. i.e. >= 2* NSEC_PER_SEC. Looking at
> > it, I'm even less convinced that it is a good idea.
> >
> >      tglx
> >
> 
> Do you have another suggestion? Or should I just account for the >= 1
> sec case in the calling code?

If you use runtime generated nsec values, why don't you use
ktime_add_ns() and feed the nsec value into it ?

Thanks,

	tglx

  reply	other threads:[~2008-09-01 13:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01 10:38 Matt Fleming
2008-09-01 11:20 ` Thomas Gleixner
2008-09-01 11:57   ` Matt Fleming
2008-09-01 13:06     ` Thomas Gleixner
2008-09-01 13:11       ` Matt Fleming
2008-09-01 13:16         ` Thomas Gleixner [this message]
2008-09-01 13:33           ` Matt Fleming

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=alpine.LFD.1.10.0809011515060.3243@apollo.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mattjfleming@googlemail.com \
    /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

all inboxes | Powered by JetHome®