mbox series

[0/4] Fix, refactor and cleanup of __ppc_get_timebase_freq related code

Message ID 20190613151145.22243-1-raoni@linux.ibm.com
Headers show
Series Fix, refactor and cleanup of __ppc_get_timebase_freq related code | expand

Message

Raoni Fassina Firmino June 13, 2019, 3:11 p.m. UTC
As the subject suggest this is an refactor and cleanup of code used for
__ppc_get_timebase_freq that was motivated by a simple initial fix.

There is a pending question.  The bug is only present when using
__ppc_get_timebase_freq with static linkage of the glibc.  There was no
test case for this case, so I am including one but the refactor that
follows the bug fix renders this test irrelevant.  So that is the
question, should the test be added (maybe is useful for back porting)
and if so, should it be removed again with the refactoring?


Raoni Fassina Firmino (3):
  powerpc: Add testcase for static version of __ppc_get_timebase_freq
  powerpc: Refactor of _get_timebase_freq
  powerpc: Remove unused internal macros for vsyscall

Stan Shebs (1):
  powerpc: Fix static-linked version of __ppc_get_timebase_freq [BZ #24640]

 sysdeps/unix/sysv/linux/powerpc/Makefile      |  2 ++
 .../sysv/linux/powerpc/get_timebase_freq.c    | 15 ++++++------
 .../sysv/linux/powerpc/powerpc32/sysdep.h     | 21 ++---------------
 .../sysv/linux/powerpc/powerpc64/sysdep.h     | 23 ++-----------------
 .../powerpc/test-gettimebasefreq-static.c     | 19 +++++++++++++++
 5 files changed, 32 insertions(+), 48 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c