[ovs-git] Open vSwitch: timeval: On Linux x86-64 systems refresh time whenever it is requested. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Aug 9 22:07:30 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  49635519bae2c14e44744825c907ccee9216bf90 (commit)
       via  4770e795f51cdff3b43325474997088f540c9b18 (commit)
      from  b6d729adb55c24fdeafecdae8565ba04586b93a0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 49635519bae2c14e44744825c907ccee9216bf90
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=49635519bae2c14e44744825c907ccee9216bf90
Author: Leo Alterman <lalterman at nicira.com>
		
timeval: On Linux x86-64 systems refresh time whenever it is requested.
		
64-bit Linux appears to avoid syscalls for clock_gettime(), so we can get
higher resolution timing and avoid having a timer firing off SIGALRM
without introducing extra overhead.

Signed-off-by: Leo Alterman <lalterman at nicira.com>


commit 4770e795f51cdff3b43325474997088f540c9b18
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4770e795f51cdff3b43325474997088f540c9b18
Author: Leo Alterman <lalterman at nicira.com>
		
lockfile: Remove lockfile_lock timeout argument
		
lockfile_lock() accepts a timeout argument but, aside from unit tests
pertaining to timeout, its value is always 0. Since this feature relies on
a periodic SIGALRM signal, which is not a given if we're not caching time,
the cleanest solution is just to remove it.

Signed-off-by: Leo Alterman <lalterman at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/lockfile.c        |   46 +++++-----------------
 lib/lockfile.h        |    2 +-
 lib/timeval.c         |   36 ++++++++++++++---
 lib/timeval.h         |   15 +++++++
 ovsdb/file.c          |    2 +-
 ovsdb/log.c           |    2 +-
 ovsdb/ovsdb-tool.c    |    4 +-
 tests/lockfile.at     |    2 -
 tests/test-lockfile.c |  101 ++++++++++++++-----------------------------------
 tests/test-timeval.c  |   10 +++++
 10 files changed, 99 insertions(+), 121 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list