timeval: Refresh current time after every wakeup, not just false wakeups.
authorBen Pfaff <blp@nicira.com>
Tue, 2 Jun 2009 21:30:12 +0000 (14:30 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 2 Jun 2009 21:30:12 +0000 (14:30 -0700)
commitbe6f099a0282f5de8451bf93cd27912cdb328d3c
tree625fc578791d4af03077b80bf7a7995f58ea9db2
parentc01c21d4eebc9da2ba6c6a315987e1fee3ad2704
timeval: Refresh current time after every wakeup, not just false wakeups.

This failure to update the current time in some cases may have contributed
to false complaints about long poll delays, since this could leave up to
100 ms of time blocked in the poll system call accounted to the next
inter-poll interval instead of to the poll system call itself.

This commit makes vswitch's claimed average poll interval to drop by a
large amount, from ~20 ms to ~2 ms.
lib/timeval.c