]> sourceware.org Git - glibc.git/commitdiff
Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overhead
authorRichard Henderson <rth@twiddle.net>
Wed, 25 Jun 2014 19:27:16 +0000 (12:27 -0700)
committerRichard Henderson <rth@twiddle.net>
Thu, 3 Jul 2014 15:38:25 +0000 (08:38 -0700)
Without HP_TIMING_ACCUM, dl_hp_timing_overhead is write-only.
If we remove it, there's no point in HP_TIMING_DIFF_INIT either.

25 files changed:
benchtests/bench-string.h
benchtests/bench-timing.h
elf/rtld.c
sysdeps/alpha/hp-timing.h
sysdeps/generic/hp-timing.h
sysdeps/generic/ldsodefs.h
sysdeps/i386/i686/Makefile
sysdeps/i386/i686/hp-timing.c [deleted file]
sysdeps/i386/i686/hp-timing.h
sysdeps/ia64/Makefile
sysdeps/ia64/hp-timing.c [deleted file]
sysdeps/ia64/hp-timing.h
sysdeps/powerpc/powerpc32/power4/hp-timing.c [deleted file]
sysdeps/powerpc/powerpc32/power4/hp-timing.h
sysdeps/powerpc/powerpc64/Makefile
sysdeps/powerpc/powerpc64/hp-timing.c [deleted file]
sysdeps/powerpc/powerpc64/hp-timing.h
sysdeps/sparc/sparc32/sparcv9/Makefile
sysdeps/sparc/sparc32/sparcv9/hp-timing.c [deleted file]
sysdeps/sparc/sparc32/sparcv9/hp-timing.h
sysdeps/sparc/sparc64/Makefile
sysdeps/sparc/sparc64/hp-timing.c [deleted file]
sysdeps/sparc/sparc64/hp-timing.h
sysdeps/x86_64/Makefile
sysdeps/x86_64/hp-timing.c [deleted file]

index 26096806f331458033c705f189fef4174d3ad3d3..bdb927f533349d7d7022169787f4c3d664affba6 100644 (file)
@@ -69,8 +69,6 @@ int ret, do_srandom;
 unsigned int seed;
 size_t page_size;
 
-hp_timing_t _dl_hp_timing_overhead;
-
 # ifndef ITERATIONS
 size_t iterations = 100000;
 #  define ITERATIONS_OPTIONS \
index ccde6011c807a28a73981b9f4caa39f579cc9281..87da32f51aca3296e80a6c2c4cf970e3c97fe340 100644 (file)
 #if HP_TIMING_AVAIL && !defined USE_CLOCK_GETTIME
 # define GL(x) _##x
 # define GLRO(x) _##x
-hp_timing_t _dl_hp_timing_overhead;
 typedef hp_timing_t timing_t;
 
 # define TIMING_TYPE "hp_timing"
 
-# define TIMING_INIT(res) \
-({                                                                           \
-  HP_TIMING_DIFF_INIT();                                                     \
-  (res) = 1;                                                         \
-})
+# define TIMING_INIT(res) ({ (res) = 1; })
 
 # define TIMING_NOW(var) HP_TIMING_NOW (var)
 # define TIMING_DIFF(diff, start, end) HP_TIMING_DIFF ((diff), (start), (end))
index 71cc0dba6806d0c9e4e781fdc11d806dee50f514..8239269a9d7548e1155d84ba37ffb8d7490d5dea 100644 (file)
@@ -279,9 +279,6 @@ _dl_start_final (void *arg, struct dl_start_final_info *info)
       else
        start_time = info->start_time;
 #endif
-
-      /* Initialize the timing functions.  */
-      HP_TIMING_DIFF_INIT ();
     }
 
   /* Transfer data about ourselves to the permanent link_map structure.  */
index 71322f977318186525ec0f097f6c49cf1b15fe8c..9745e5360d8f70ea8ab78e9e5326110b18a9018c 100644 (file)
@@ -45,9 +45,6 @@
    - HP_TIMING_NOW: place timestamp for current time in variable given as
      parameter.
 
-   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
-     HP_TIMING_DIFF macro.
-
    - HP_TIMING_DIFF: compute difference between two times and store it
      in a third.  Source and destination might overlap.
 
@@ -80,9 +77,6 @@ typedef unsigned int hp_timing_t;
     (VAR) = (int) (x_) - (int) (x_ >> 32);                                   \
   } while (0)
 
-/* ??? Two rpcc instructions can be scheduled simultaneously.  */
-#define HP_TIMING_DIFF_INIT() do { } while (0)
-
 /* It's simple arithmetic for us.  */
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
index 894ab172368dfeb71e3da005f532005f0cee30a1..49ddb910466da0a6062675d0cde12eb207c3eded 100644 (file)
@@ -42,9 +42,6 @@
    - HP_TIMING_NOW: place timestamp for current time in variable given as
      parameter.
 
-   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
-     HP_TIMING_DIFF macro.
-
    - HP_TIMING_DIFF: compute difference between two times and store it
      in a third.  Source and destination might overlap.
 
@@ -62,7 +59,6 @@
 #define HP_TIMING_INLINE       (0)
 typedef int hp_timing_t;
 #define HP_TIMING_NOW(var)
-#define HP_TIMING_DIFF_INIT()
 #define HP_TIMING_DIFF(Diff, Start, End)
 #define HP_TIMING_ACCUM_NT(Sum, Diff)
 #define HP_TIMING_PRINT(Buf, Len, Val)
index 96f018da3c4b689ba37db9699397fd457ce1baa2..2acddaa5631828410ed516d308daf008202ad900 100644 (file)
@@ -532,11 +532,6 @@ struct rtld_global_ro
   /* All search directories defined at startup.  */
   EXTERN struct r_search_path_elem *_dl_init_all_dirs;
 
-#if HP_TIMING_AVAIL || HP_SMALL_TIMING_AVAIL
-  /* Overhead of a high-precision timing measurement.  */
-  EXTERN hp_timing_t _dl_hp_timing_overhead;
-#endif
-
 #ifdef NEED_DL_SYSINFO
   /* Syscall handling improvements.  This is very specific to x86.  */
   EXTERN uintptr_t _dl_sysinfo;
index 01c29178929d40e473d17e326e66bb08b9e2a497..5ce9fc670ab8cd4d2ad787566ab262e0d5d2632c 100644 (file)
@@ -1,8 +1,3 @@
-ifeq ($(subdir),csu)
-sysdep_routines += hp-timing
-elide-routines.os += hp-timing
-endif
-
 # So that we can test __m128's alignment
 stack-align-test-flags += -msse
 
diff --git a/sysdeps/i386/i686/hp-timing.c b/sysdeps/i386/i686/hp-timing.c
deleted file mode 100644 (file)
index faa6dad..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Support for high precision, low overhead timing functions.  i686 version.
-   Copyright (C) 1998-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <hp-timing.h>
-
-/* We have to define the variable for the overhead.  */
-hp_timing_t _dl_hp_timing_overhead;
index a4b19c1043eda4d3d95c13ddd7aafe1eac215d6a..12c613e9dea685a7209dafdf05c1ca6236d68f29 100644 (file)
@@ -52,9 +52,6 @@
    - HP_TIMING_NOW: place timestamp for current time in variable given as
      parameter.
 
-   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
-     HP_TIMING_DIFF macro.
-
    - HP_TIMING_DIFF: compute difference between two times and store it
      in a third.  Source and destination might overlap.
 
@@ -83,25 +80,6 @@ typedef unsigned long long int hp_timing_t;
    in accurate clock cycles here so we don't do this.  */
 #define HP_TIMING_NOW(Var)     __asm__ __volatile__ ("rdtsc" : "=A" (Var))
 
-/* Use two 'rdtsc' instructions in a row to find out how long it takes.  */
-#define HP_TIMING_DIFF_INIT() \
-  do {                                                                       \
-    if (GLRO(dl_hp_timing_overhead) == 0)                                    \
-      {                                                                              \
-       int __cnt = 5;                                                        \
-       GLRO(dl_hp_timing_overhead) = ~0ull;                                  \
-       do                                                                    \
-         {                                                                   \
-           hp_timing_t __t1, __t2;                                           \
-           HP_TIMING_NOW (__t1);                                             \
-           HP_TIMING_NOW (__t2);                                             \
-           if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))                    \
-             GLRO(dl_hp_timing_overhead) = __t2 - __t1;                      \
-         }                                                                   \
-       while (--__cnt > 0);                                                  \
-      }                                                                              \
-  } while (0)
-
 /* It's simple arithmetic for us.  */
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
index 2ea937ac9e3385bd86eecaf7e7e5fbe34983b65e..09e41f2417fab8361e938e81055801cd9fadf94a 100644 (file)
@@ -7,8 +7,6 @@ endif
 
 ifeq ($(subdir), csu)
 CPPFLAGS-start.S = -D__ASSEMBLY__
-sysdep_routines += hp-timing
-elide-routines.os += hp-timing
 
 ifeq (yes,$(build-shared))
 # Compatibility
diff --git a/sysdeps/ia64/hp-timing.c b/sysdeps/ia64/hp-timing.c
deleted file mode 100644 (file)
index 7a661cb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Support for high precision, low overhead timing functions.  IA-64 version.
-   Copyright (C) 2001-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 2001.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <hp-timing.h>
-
-/* We have to define the variable for the overhead.  */
-hp_timing_t _dl_hp_timing_overhead;
index ccc49e63cec21292e414beac771c23f8449b83c6..6b49ffc2ebd1c1c85e9755595b2be38afc61e843 100644 (file)
@@ -46,9 +46,6 @@
    - HP_TIMING_NOW: place timestamp for current time in variable given as
      parameter.
 
-   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
-     HP_TIMING_DIFF macro.
-
    - HP_TIMING_DIFF: compute difference between two times and store it
      in a third.  Source and destination might overlap.
 
@@ -84,22 +81,6 @@ typedef unsigned long int hp_timing_t;
      while (REPEAT_READ (__itc));                                            \
      Var = __itc; })
 
-/* Use two 'ar.itc' instructions in a row to find out how long it takes.  */
-#define HP_TIMING_DIFF_INIT() \
-  do {                                                                       \
-    int __cnt = 5;                                                           \
-    GLRO(dl_hp_timing_overhead) = ~0ul;                                              \
-    do                                                                       \
-      {                                                                              \
-       hp_timing_t __t1, __t2;                                               \
-       HP_TIMING_NOW (__t1);                                                 \
-       HP_TIMING_NOW (__t2);                                                 \
-       if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))                        \
-         GLRO(dl_hp_timing_overhead) = __t2 - __t1;                          \
-      }                                                                              \
-    while (--__cnt > 0);                                                     \
-  } while (0)
-
 /* It's simple arithmetic for us.  */
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
diff --git a/sysdeps/powerpc/powerpc32/power4/hp-timing.c b/sysdeps/powerpc/powerpc32/power4/hp-timing.c
deleted file mode 100644 (file)
index fcf5e45..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Support for high precision, low overhead timing functions.
-   powerpc64 version.
-   Copyright (C) 2005-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <hp-timing.h>
-
-/* We have to define the variable for the overhead.  */
-hp_timing_t _dl_hp_timing_overhead;
index cd296c52e2f881721aa00bc140dfc90f214785cb..702efac3963080518a2501ea897bf834f265a581 100644 (file)
@@ -45,9 +45,6 @@
    - HP_TIMING_NOW: place timestamp for current time in variable given as
      parameter.
 
-   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
-     HP_TIMING_DIFF macro.
-
    - HP_TIMING_DIFF: compute difference between two times and store it
      in a third.  Source and destination might overlap.
 
@@ -88,27 +85,6 @@ typedef unsigned long long int hp_timing_t;
     Var = ((hp_timing_t) hi << 32) | lo;                               \
   } while (0)
 
-
-/* Use two 'mftb' instructions in a row to find out how long it takes.
-   On current POWER4, POWER5, and 970 processors mftb take ~10 cycles.  */
-#define HP_TIMING_DIFF_INIT() \
-  do {                                                                       \
-    if (GLRO(dl_hp_timing_overhead) == 0)                                    \
-      {                                                                              \
-       int __cnt = 5;                                                        \
-       GLRO(dl_hp_timing_overhead) = ~0ull;                                  \
-       do                                                                    \
-         {                                                                   \
-           hp_timing_t __t1, __t2;                                           \
-           HP_TIMING_NOW (__t1);                                             \
-           HP_TIMING_NOW (__t2);                                             \
-           if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))                    \
-             GLRO(dl_hp_timing_overhead) = __t2 - __t1;                      \
-         }                                                                   \
-       while (--__cnt > 0);                                                  \
-      }                                                                              \
-  } while (0)
-
 /* It's simple arithmetic in 64-bit.  */
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
index 171e89b3bae4cabe07d8401aefc11692410d4787..9d15db0328b8db98570f8fa923682be96a0d8af8 100644 (file)
@@ -35,11 +35,6 @@ CFLAGS-rtld-memmove.os = $(no-special-regs)
 CFLAGS-rtld-memchr.os = $(no-special-regs)
 CFLAGS-rtld-strnlen.os = $(no-special-regs)
 
-ifeq ($(subdir),csu)
-sysdep_routines += hp-timing
-elide-routines.os += hp-timing
-endif
-
 ifeq ($(subdir),elf)
 # help gcc inline asm code from dl-machine.h
 +cflags += -finline-limit=2000
diff --git a/sysdeps/powerpc/powerpc64/hp-timing.c b/sysdeps/powerpc/powerpc64/hp-timing.c
deleted file mode 100644 (file)
index fcf5e45..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Support for high precision, low overhead timing functions.
-   powerpc64 version.
-   Copyright (C) 2005-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <hp-timing.h>
-
-/* We have to define the variable for the overhead.  */
-hp_timing_t _dl_hp_timing_overhead;
index 4cad90afa1a508638a3649d92bae3bc0f3d6e89b..7241b9b9d7ae0535b9df99c5a3130f3925e00c07 100644 (file)
@@ -45,9 +45,6 @@
    - HP_TIMING_NOW: place timestamp for current time in variable given as
      parameter.
 
-   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
-     HP_TIMING_DIFF macro.
-
    - HP_TIMING_DIFF: compute difference between two times and store it
      in a third.  Source and destination might overlap.
 
@@ -80,26 +77,6 @@ typedef unsigned long long int hp_timing_t;
 #define HP_TIMING_NOW(Var)     __asm__ __volatile__ ("mftb %0" : "=r" (Var))
 #endif
 
-/* Use two 'mftb' instructions in a row to find out how long it takes.
-   On current POWER4, POWER5, and 970 processors mftb take ~10 cycles.  */
-#define HP_TIMING_DIFF_INIT() \
-  do {                                                                       \
-    if (GLRO(dl_hp_timing_overhead) == 0)                                    \
-      {                                                                              \
-       int __cnt = 5;                                                        \
-       GLRO(dl_hp_timing_overhead) = ~0ull;                                  \
-       do                                                                    \
-         {                                                                   \
-           hp_timing_t __t1, __t2;                                           \
-           HP_TIMING_NOW (__t1);                                             \
-           HP_TIMING_NOW (__t2);                                             \
-           if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))                    \
-             GLRO(dl_hp_timing_overhead) = __t2 - __t1;                      \
-         }                                                                   \
-       while (--__cnt > 0);                                                  \
-      }                                                                              \
-  } while (0)
-
 /* It's simple arithmetic in 64-bit.  */
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
index 36f889ec96b44b0fb6074ee5f66861c569d2da0c..925fa4ff73108ba2625ddd4542b7a4097fdbf0e9 100644 (file)
@@ -1,10 +1,5 @@
 sysdep-CFLAGS += -mcpu=ultrasparc -Wa,-Av9a
 
-ifeq ($(subdir),csu)
-sysdep_routines += hp-timing
-elide-routines.os += hp-timing
-endif
-
 ifeq ($(have-as-vis3),yes)
 ASFLAGS-.o += -Wa,-Av9d
 ASFLAGS-.os += -Wa,-Av9d
diff --git a/sysdeps/sparc/sparc32/sparcv9/hp-timing.c b/sysdeps/sparc/sparc32/sparcv9/hp-timing.c
deleted file mode 100644 (file)
index 2224099..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Support for high precision, low overhead timing functions.  sparcv9 version.
-   Copyright (C) 2001-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by David S. Miller <davem@redhat.com>, 2001.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <hp-timing.h>
-
-/* We have to define the variable for the overhead.  */
-hp_timing_t _dl_hp_timing_overhead;
index c3be1ca9447c1af05bcb4cc0bc411f77ad48ffc7..3f63ce68d3e31548c3e74576c8f36a4e70306a5a 100644 (file)
@@ -34,21 +34,6 @@ typedef unsigned long long int hp_timing_t;
                            "srlx %L0, 32, %H0" \
                            : "=r" (Var))
 
-#define HP_TIMING_DIFF_INIT() \
-  do {                                                                       \
-    int __cnt = 5;                                                           \
-    GLRO(dl_hp_timing_overhead) = ~0ull;                                     \
-    do                                                                       \
-      {                                                                              \
-       hp_timing_t __t1, __t2;                                               \
-       HP_TIMING_NOW (__t1);                                                 \
-       HP_TIMING_NOW (__t2);                                                 \
-       if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))                        \
-         GLRO(dl_hp_timing_overhead) = __t2 - __t1;                          \
-      }                                                                              \
-    while (--__cnt > 0);                                                     \
-  } while (0)
-
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
 #define HP_TIMING_ACCUM_NT(Sum, Diff)  (Sum) += (Diff)
index dd3023dcec92f840e015da037c7528bd68546550..dfc118cfef2d1d0f6cad5eae2e701a0bdd80c171 100644 (file)
@@ -1,8 +1,3 @@
-ifeq ($(subdir),csu)
-sysdep_routines += hp-timing
-elide-routines.os += hp-timing
-endif
-
 ifeq ($(subdir),string)
 sysdep_routines += align-cpy
 endif
diff --git a/sysdeps/sparc/sparc64/hp-timing.c b/sysdeps/sparc/sparc64/hp-timing.c
deleted file mode 100644 (file)
index 0a425ed..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Support for high precision, low overhead timing functions.  sparc64 version.
-   Copyright (C) 2001-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by David S. Miller <davem@redhat.com>, 2001.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <hp-timing.h>
-
-/* We have to define the variable for the overhead.  */
-hp_timing_t _dl_hp_timing_overhead;
index 9e49b7841b59ec83cd4d8280ab408bdecc0935fc..521f64ec433e840a88f21df6b22905508ad64d6c 100644 (file)
@@ -31,21 +31,6 @@ typedef unsigned long int hp_timing_t;
 
 #define HP_TIMING_NOW(Var) __asm__ __volatile__ ("rd %%tick, %0" : "=r" (Var))
 
-#define HP_TIMING_DIFF_INIT() \
-  do {                                                                       \
-    int __cnt = 5;                                                           \
-    GLRO(dl_hp_timing_overhead) = ~0ull;                                     \
-    do                                                                       \
-      {                                                                              \
-       hp_timing_t __t1, __t2;                                               \
-       HP_TIMING_NOW (__t1);                                                 \
-       HP_TIMING_NOW (__t2);                                                 \
-       if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))                        \
-         GLRO(dl_hp_timing_overhead) = __t2 - __t1;                          \
-      }                                                                              \
-    while (--__cnt > 0);                                                     \
-  } while (0)
-
 #define HP_TIMING_DIFF(Diff, Start, End)       (Diff) = ((End) - (Start))
 
 #define HP_TIMING_ACCUM_NT(Sum, Diff)  (Sum) += (Diff)
index 58900a5c28a8649f8e81bb4251cc026d26b8f0b7..32b36d5ce20cb04ef4450187b26e4c80b68a5043 100644 (file)
@@ -2,8 +2,6 @@
 long-double-fcts = yes
 
 ifeq ($(subdir),csu)
-sysdep_routines += hp-timing
-elide-routines.os += hp-timing
 gen-as-const-headers += link-defines.sym
 endif
 
diff --git a/sysdeps/x86_64/hp-timing.c b/sysdeps/x86_64/hp-timing.c
deleted file mode 100644 (file)
index 289ca4c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-/* We can use the i686 implementation without changes.  */
-#include <sysdeps/i386/i686/hp-timing.c>
This page took 0.077007 seconds and 5 git commands to generate.