lkml.org 
[lkml]   [2008]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectktime_set() does not check for nanoseconds > one second
Hi,

is it intentional that ktime_set() does not check whether the
nanoseconds argument is greater than the number of nanoseconds in a
second? I've run into a problem where a value of 1600000000
nanoseconds was passed as an argument to ktime_set() and the return
value was then used in a ktime_add() call, which returned an incorrect
result. Should the caller of ktime_set() make this check or is it
possible to move this logic in to the function itself?

Matt


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