Set EFI ticks to 1000Hz simplifying much of the code and avoiding cotsly division

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-05-08 17:05:47 +02:00
parent a988e7aa63
commit 7216a1bff3
3 changed files with 12 additions and 8 deletions

View file

@ -21,8 +21,7 @@
#include <grub/symbol.h>
/* This is destined to overflow when one hour passes by. */
#define GRUB_TICKS_PER_SECOND ((1UL << 31) / 60 / 60 * 2)
#define GRUB_TICKS_PER_SECOND 1000
/* Return the real time in ticks. */
grub_uint32_t EXPORT_FUNC (grub_get_rtc) (void);