]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 8 Oct 2013 17:53:57 +0000 (19:53 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 8 Oct 2013 17:53:57 +0000 (19:53 +0200)
ChangeLog
grub-core/kern/emu/misc.c
include/grub/time.h

index c1e9fbfec8210040314c7777de9008f71c048c2c..323c2a0da28c0edc803f2891c84d38e03db632da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
+
 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/net/drivers/emu/emunet.c: Move to ..
index fe967324740838273d3e140f3f492405489b5e54..e68731c2f7fdee4379e1edf41cf3c1daa5c4b8a7 100644 (file)
@@ -29,9 +29,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#endif
 
 #include <grub/mm.h>
 #include <grub/err.h>
@@ -156,18 +153,6 @@ grub_get_time_ms (void)
   return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
 }
 
-grub_uint32_t
-grub_get_rtc (void)
-{
-  struct timeval tv;
-
-  gettimeofday (&tv, 0);
-
-  return (tv.tv_sec * GRUB_TICKS_PER_SECOND
-         + (((tv.tv_sec % GRUB_TICKS_PER_SECOND) * 1000000 + tv.tv_usec)
-            * GRUB_TICKS_PER_SECOND / 1000000));
-}
-
 #ifdef __MINGW32__
 
 int fsync (int fno __attribute__ ((unused)))
index e834796e22ba35a404abc4e089829f5df934cae6..9494526805405b5066a9260a8a5775fb754aae5d 100644 (file)
 #include <grub/symbol.h>
 #include <grub/cpu/time.h>
 
-#if defined (GRUB_MACHINE_EMU) || defined (GRUB_UTIL)
-#define GRUB_TICKS_PER_SECOND 100000
-/* Return the real time in ticks.  */
-grub_uint32_t EXPORT_FUNC (grub_get_rtc) (void);
-#endif
-
 void EXPORT_FUNC(grub_millisleep) (grub_uint32_t ms);
 grub_uint64_t EXPORT_FUNC(grub_get_time_ms) (void);