Re: [PATCH] hrtimer: make epoll_wait() use the hrtimer range feature

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn Bohrer
Date: Wednesday, November 24, 2010 - 7:52 am

On Wed, Nov 24, 2010 at 03:33:02AM -0500, Mike Frysinger wrote:

If a negative timeout is passed in then 'to' remains NULL.  When 'to
is NULL schedule_hrtimeout_range() has an infinite timeout and the
'slack' parameter is never used.  So technically everything should be
fine here.

Of course it would be safest and best to simply initialize slack to 0.
I can send a patch this evening with the fix.

--
Shawn
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] hrtimer: make epoll_wait() use the hrtimer ran ..., Shawn Bohrer, (Wed Nov 24, 7:52 am)