+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 ..
#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>
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)))
#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);