]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use exclusively clock_gettime to implement gettimeofday.
authorZack Weinberg <zackw@panix.com>
Wed, 28 Aug 2019 12:30:28 +0000 (08:30 -0400)
committerZack Weinberg <zackw@panix.com>
Mon, 6 Jan 2020 20:37:00 +0000 (15:37 -0500)
commitd5f4d0ac6a14cc3385dc4180698f939ca0ee00f5
tree26a19409f53c6bd2d298c94f89dd8bbce1a63c82
parent9ac2398ef958e164ecbb918547aa493818a22942
Use exclusively clock_gettime to implement gettimeofday.

In 2.31 we changed most ports to implement gettimeofday using
clock_gettime(CLOCK_REALTIME[_COARSE]), but we kept around a handful
of Linux-specific implementations that went directly to the vDSO.

Actual performance testing (on x86-64) indicates that there is no
measurable difference between invoking the vDSO directly and calling
clock_gettime (which then calls into the vDSO), so remove all of these
for simplicity’s sake.
sysdeps/unix/sysv/linux/aarch64/gettimeofday.c [deleted file]
sysdeps/unix/sysv/linux/gettimeofday.c [deleted file]
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c [deleted file]
sysdeps/unix/sysv/linux/x86/gettimeofday.c [deleted file]