diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-05 09:48:04 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-05 09:48:07 -0700 |
commit | e52434a2e4d1105272daaef87678da950fbec73f (patch) | |
tree | 32d8bfaeedb32a24a51a5ee588f0417542b69f29 /benchtests/bench-timing.h | |
parent | f6070476687af9ca1b5837f8a45047acdd419b08 (diff) | |
download | glibc-e52434a2e4d1105272daaef87678da950fbec73f.tar.gz glibc-e52434a2e4d1105272daaef87678da950fbec73f.tar.xz glibc-e52434a2e4d1105272daaef87678da950fbec73f.zip |
benchtests: Restore the clock_gettime option
commit 7621e38bf3c58b2d0359545f1f2898017fd89d05 Author: Wilco Dijkstra <Wilco.Dijkstra@arm.com> Date: Tue Jan 29 17:43:45 2019 +0000 Add generic hp-timing support removed the clock_gettime option. Restore the clock_gettime option for some x86 CPUs on which value from RDTSC may not be incremented at a fixed rate. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'benchtests/bench-timing.h')
-rw-r--r-- | benchtests/bench-timing.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h index d0176fb76e..c632d4440e 100644 --- a/benchtests/bench-timing.h +++ b/benchtests/bench-timing.h @@ -18,7 +18,11 @@ #undef attribute_hidden #define attribute_hidden -#include <hp-timing.h> +#ifdef USE_CLOCK_GETTIME +# include <sysdeps/generic/hp-timing.h> +#else +# include <hp-timing.h> +#endif #include <stdint.h> #define GL(x) _##x |