parlib: Move alarm/timer functions from benchutil
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Apr 2017 20:43:37 +0000 (16:43 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commitcc26bfafa4fa30e9cb7bdb5c88efa53e1e02b89b
tree476d851d4e3df4323285b43f0bee0d3d24b161cf
parent7e6d638bb795da78d8bf6079cb0ba54a63ffa082
parlib: Move alarm/timer functions from benchutil

Certain functions are in benchutil because they couldn't be in parlib.  The
original function of this sort needed -libm (sqrt, IIRC).

These other timing functions were in benchutil since usec2tsc() was there,
which was back in 2013.  It turns out those didn't need to be in benchutil,
and they were moved about a year later in commit dd7547b8fc54 ("Moves some
timing func from benchutil to parlib").

Now that there's no reason to have those functions in benchutil, we can
move them to parlib.  I need to do this since I'd like to use alarms for
parlib's mutex.c functions.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
28 files changed:
tests/alarm.c
tests/evq_block.c
tests/getifaddrs.c
tests/listen1.c
tests/ping.c
tests/timerfd.c
tests/xmm.c
tools/apps/ipconfig/ipv6.c
tools/apps/ipconfig/main.c
user/benchutil/alarm.c [deleted file]
user/benchutil/include/benchutil/alarm.h [deleted file]
user/benchutil/include/benchutil/pvcalarm.h [deleted file]
user/benchutil/include/benchutil/vcore_tick.h [deleted file]
user/benchutil/pvcalarm.c [deleted file]
user/benchutil/vcore_tick.c [deleted file]
user/parlib/alarm.c [new file with mode: 0644]
user/parlib/include/parlib/alarm.h [new file with mode: 0644]
user/parlib/include/parlib/pvcalarm.h [new file with mode: 0644]
user/parlib/include/parlib/vcore_tick.h [new file with mode: 0644]
user/parlib/pvcalarm.c [new file with mode: 0644]
user/parlib/vcore_tick.c [new file with mode: 0644]
user/pthread/futex.c
user/pthread/profalarm.c
user/pthread/semaphore.c
user/pthread/semaphore.h
user/utest/alarm.c
user/utest/pvcalarm.c
user/vmm/sched.c