[lkml]   [2005]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [UPDATE PATCH] push rounding up of relative request to schedule_timeout()
On 8/4/05, George Anzinger <> wrote:
> Nishanth Aravamudan wrote:
> ~
> > Sorry, I forgot that sys_nanosleep() also always adds 1 to the request
> > (to account for this same issue, I believe, as POSIX demands no early
> > return from nanosleep() calls). There are some other locations where
> > similar
> >
> > + (t.tv_sec || t.tv_nsec)
> This is not the same as "always add 1". We don't do it this way just to
> have fun with C. If you change schedule_timeout() to add the 1,
> nanosleep() will need to do things differently to get the same behavior.
> (And, YES users do pass in zero sleep times.)

Fair enough. Will need to think about this more.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-08-04 20:57    [W:0.098 / U:4.912 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site