]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2002-08-18 Roland McGrath <roland@frob.com>
authorRoland McGrath <roland@gnu.org>
Sun, 18 Aug 2002 19:55:38 +0000 (19:55 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 18 Aug 2002 19:55:38 +0000 (19:55 +0000)
* sysdeps/mach/hurd/dl-sysdep.c
[HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
[HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.

sysdeps/mach/hurd/dl-sysdep.c

index 644edeedb50b3f6adcf6d57d6c8e7e64d4c936aa..98e356eda9a543743d0ccd72d89e47df327a8162 100644 (file)
@@ -53,7 +53,9 @@ int __libc_multiple_libcs = 0;        /* Defining this here avoids the inclusion
 /* This variable containts the lowest stack address ever used.  */
 void *__libc_stack_end;
 unsigned long int _dl_hwcap_mask = HWCAP_IMPORTANT;
-
+#if HP_TIMING_AVAIL
+hp_timing_t _dl_cpuclock_offset;
+#endif
 
 struct hurd_startup_data *_dl_hurd_data;
 
@@ -238,6 +240,10 @@ unfmh();                   /* XXX */
   /* Initialize frequently used global variable.  */
   _dl_pagesize = __getpagesize ();
 
+#if HP_TIMING_AVAIL
+  HP_TIMING_NOW (_dl_cpuclock_offset);
+#endif
+
 fmh();                         /* XXX */
 
   /* See hurd/hurdstartup.c; this deals with getting information