This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 06/16] linux: Consolidate Linux gettimeofday


On 18/12/19 3:17 am, Adhemerval Zanella wrote:
> The IFUNC bypass to vDSO is used when USE_IFUNC_GETTIMEOFDAY is set.
> Currently aarch64, powerpc*, and x86 defines it.  Otherwise the
> generic implementation is used, which calls clock_gettime.
> 
> Checked on aarch64-linux-gnu, powerpc64le-linux-gnu,
> powerpc64-linux-gnu, powerpc-linux-gnu-power4, x86_64-linux-gnu,
> and i686-linux-gnu.
> ---
>  .../unix/sysv/linux/aarch64/gettimeofday.c    | 38 +------------
>  sysdeps/unix/sysv/linux/gettimeofday.c        | 57 +++++++++++++++++++
>  .../unix/sysv/linux/powerpc/gettimeofday.c    | 35 +-----------
>  sysdeps/unix/sysv/linux/x86/gettimeofday.c    | 33 +----------
>  4 files changed, 63 insertions(+), 100 deletions(-)
>  create mode 100644 sysdeps/unix/sysv/linux/gettimeofday.c
> 

OK assuming you've fixed Andreas' review comment.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]