2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

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>
This commit is contained in:
Alex Wang
2013-09-04 15:49:19 -07:00
committed by Ethan Jackson
parent c4f5d00bb7
commit 31ef9f5178
13 changed files with 17 additions and 339 deletions

View File

@@ -289,7 +289,6 @@ fork_and_clean_up(void)
fatal_signal_fork();
} else if (!pid) {
/* Running in child process. */
time_postfork();
lockfile_postfork();
}
return pid;