Messages in this thread | | | Date | Mon, 1 Sep 2008 15:16:51 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: ktime_set() does not check for nanoseconds > one second |
| |
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
| |