timeval: Recover from failed timer_create() calls.
authorEthan Jackson <ethan@nicira.com>
Fri, 5 Oct 2012 01:38:59 +0000 (18:38 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 5 Oct 2012 18:33:11 +0000 (11:33 -0700)
commita457574880b01a30c16e9b92c9ead760631de3c1
treef2a1760668df88f2a7fd2f835745ee6f1359586f
parent00a16895875658e14f0c95a5e7d179b70b7c57b5
timeval: Recover from failed timer_create() calls.

The timer_create() system call is not supported in ESX and returns
an error when called.  Aborting when this system call fails seems a
bit extreme. So instead, this patch simply falls back to disabling
the cached time optimization.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/timeval.c
lib/timeval.h
tests/test-timeval.c