lkml.org 
[lkml]   [2008]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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


\
 
 \ /
  Last update: 2008-09-01 15:19    [W:0.042 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site