Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JQi4B-0002fj-3d for mharc-grub-devel@gnu.org; Sun, 17 Feb 2008 06:52:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQi49-0002fO-CS for grub-devel@gnu.org; Sun, 17 Feb 2008 06:52:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQi47-0002eo-Ae for grub-devel@gnu.org; Sun, 17 Feb 2008 06:52:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQi47-0002el-1j for grub-devel@gnu.org; Sun, 17 Feb 2008 06:52:15 -0500 Received: from bigbox.boeglin.org ([88.191.20.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQi47-0001Q9-0y for grub-devel@gnu.org; Sun, 17 Feb 2008 06:52:15 -0500 Received: by bigbox.boeglin.org (Postfix, from userid 1000) id A73459408A; Sun, 17 Feb 2008 12:52:40 +0100 (CET) Date: Sun, 17 Feb 2008 12:52:40 +0100 From: Alexandre Boeglin To: grub-devel@gnu.org Message-ID: <20080217115240.GB8497@boeglin.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: [PATCH] fix GRUB_TICKS_PER_SECOND in include/grub/efi/time.h X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2008 11:52:18 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This small patch fixes grub_get_rtc on EFI architecture. If I understood correctly, one minute is 60000 milliseconds, not 3600. Alex --9jxsPFA5p3P2qPhR Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="grub2_efitime.patch" 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 + + * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): One minute is 60 * 1000 + milliseconds. + 2008-02-17 Robert Millan * 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 /* 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); --9jxsPFA5p3P2qPhR--