timeval: Remove CACHE_TIME scheme.
authorAlex Wang <alexw@nicira.com>
Wed, 4 Sep 2013 22:49:19 +0000 (15:49 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 4 Sep 2013 23:57:40 +0000 (16:57 -0700)
commit31ef9f5178dee18a40ce609aad406e925411eb06
tree9a6934361442e8d97b0264244ec8f156e723b9db
parentc4f5d00bb76e01383ec3fbde31bc5c8f4e0a2b38
timeval: Remove CACHE_TIME scheme.

This commit removes the CACHE_TIME scheme from timeval module.  This
is for eliminating the lock contention over the read/write lock of
the cached time.  To get the time, the thread now will directly do
the system call 'clock_gettime()'.

As a side effect, timer can only be warpped after timer is stopped
by 'appctl time/stop' command.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
13 files changed:
lib/daemon.c
lib/timeval.c
lib/timeval.h
m4/openvswitch.m4
ofproto/ofproto-dpif.c
tests/automake.mk
tests/learn.at
tests/ofproto-dpif.at
tests/test-lockfile.c
tests/test-timeval.c [deleted file]
tests/testsuite.at
tests/timeval.at [deleted file]
vswitchd/bridge.c