chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / hurd-i386 / local-no-hp-timing.diff
1 2010-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2
3 We don't have support for hp timing for now, even the i686 variant, which needs
4 to know the CPU speed.
5 Copied from sysdeps/generic/hp-timing.h
6
7 ---
8  hp-timing.h |   41 +++++++++++++++++++++++++++++++++++++++++
9  1 file changed, 41 insertions(+)
10
11 diff --git a/sysdeps/mach/hurd/hp-timing.h b/sysdeps/mach/hurd/hp-timing.h
12 new file mode 100644
13 index 0000000..933fb83
14 --- /dev/null
15 +++ b/sysdeps/mach/hurd/hp-timing.h
16 @@ -0,0 +1,41 @@
17 +/* High precision, low overhead timing functions.  Generic version.
18 +   Copyright (C) 1998, 2000 Free Software Foundation, Inc.
19 +   This file is part of the GNU C Library.
20 +   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
21 +
22 +   The GNU C Library is free software; you can redistribute it and/or
23 +   modify it under the terms of the GNU Lesser General Public
24 +   License as published by the Free Software Foundation; either
25 +   version 2.1 of the License, or (at your option) any later version.
26 +
27 +   The GNU C Library is distributed in the hope that it will be useful,
28 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
29 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30 +   Lesser General Public License for more details.
31 +
32 +   You should have received a copy of the GNU Lesser General Public
33 +   License along with the GNU C Library; if not, write to the Free
34 +   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
35 +   02111-1307 USA.  */
36 +
37 +#ifndef _HP_TIMING_H
38 +#define _HP_TIMING_H   1
39 +
40 +/* We don't have support for high precision timing for now. */
41 +
42 +/* Provide dummy definitions.  */
43 +#define HP_TIMING_AVAIL                (0)
44 +#define HP_TIMING_INLINE       (0)
45 +typedef int hp_timing_t;
46 +#define HP_TIMING_ZERO(Var)
47 +#define HP_TIMING_NOW(var)
48 +#define HP_TIMING_DIFF_INIT()
49 +#define HP_TIMING_DIFF(Diff, Start, End)
50 +#define HP_TIMING_ACCUM(Sum, Diff)
51 +#define HP_TIMING_ACCUM_NT(Sum, Diff)
52 +#define HP_TIMING_PRINT(Buf, Len, Val)
53 +
54 +/* Since this implementation is not available we tell the user about it.  */
55 +#define HP_TIMING_NONAVAIL     1
56 +
57 +#endif /* hp-timing.h */