All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix GRUB_TICKS_PER_SECOND in include/grub/efi/time.h
@ 2008-02-17 11:52 Alexandre Boeglin
  2008-02-17 12:15 ` Alexandre Boeglin
  2008-02-21 21:08 ` Yoshinori K. Okuji
  0 siblings, 2 replies; 10+ messages in thread
From: Alexandre Boeglin @ 2008-02-17 11:52 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Hi,

This small patch fixes grub_get_rtc on EFI architecture. If I understood
correctly, one minute is 60000 milliseconds, not 3600.

Alex

[-- Attachment #2: grub2_efitime.patch --]
[-- Type: text/x-diff, Size: 1523 bytes --]

Index: ChangeLog
===================================================================
RCS file: /sources/grub/grub2/ChangeLog,v
retrieving revision 1.591
diff -u -p -r1.591 ChangeLog
--- ChangeLog	17 Feb 2008 10:32:02 -0000	1.591
+++ ChangeLog	17 Feb 2008 11:47:50 -0000
@@ -1,3 +1,8 @@
+2008-02-17  Alexandre Boeglin  <alex@boeglin.org>
+
+	* include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): One minute is 60 * 1000
+	milliseconds.
+
 2008-02-17  Robert Millan  <rmh@aybabtu.com>
 
 	* util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
Index: include/grub/efi/time.h
===================================================================
RCS file: /sources/grub/grub2/include/grub/efi/time.h,v
retrieving revision 1.2
diff -u -p -r1.2 time.h
--- include/grub/efi/time.h	21 Jul 2007 23:32:23 -0000	1.2
+++ include/grub/efi/time.h	17 Feb 2008 11:47:50 -0000
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2006,2007  Free Software Foundation, Inc.
+ *  Copyright (C) 2006,2007,2008  Free Software Foundation, Inc.
  *
  *  GRUB is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 #include <grub/symbol.h>
 
 /* This is destined to overflow when one minute passes by.  */
-#define GRUB_TICKS_PER_SECOND	((1UL << 31) / 60 / 60 * 2)
+#define GRUB_TICKS_PER_SECOND	((1UL << 31) / 60 / 1000 * 2)
 
 /* Return the real time in ticks.  */
 grub_uint32_t EXPORT_FUNC (grub_get_rtc) (void);

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-03-01 17:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-17 11:52 [PATCH] fix GRUB_TICKS_PER_SECOND in include/grub/efi/time.h Alexandre Boeglin
2008-02-17 12:15 ` Alexandre Boeglin
2008-02-17 14:55   ` Alexandre Boeglin
2008-02-21 18:53     ` Alexandre Boeglin
2008-02-21 21:16       ` Yoshinori K. Okuji
2008-02-21 21:08 ` Yoshinori K. Okuji
2008-02-22  7:49   ` Alexandre Boeglin
2008-02-22  8:24     ` Yoshinori K. Okuji
2008-02-29 12:52       ` Alexandre Boeglin
2008-03-01 17:30         ` Yoshinori K. Okuji

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.