diff options
author | Alex Wang <alexw@nicira.com> | 2013-09-04 15:49:19 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2013-09-04 16:57:40 -0700 |
commit | 31ef9f5178dee18a40ce609aad406e925411eb06 (patch) | |
tree | 9a6934361442e8d97b0264244ec8f156e723b9db /lib/daemon.c | |
parent | c4f5d00bb76e01383ec3fbde31bc5c8f4e0a2b38 (diff) |
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>
Diffstat (limited to 'lib/daemon.c')
-rw-r--r-- | lib/daemon.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/daemon.c b/lib/daemon.c index 98f30d7b..1c9ebe25 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -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; |