All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tsc: Change default tsc calibration method to EFI on EFI systems
@ 2017-09-06 20:20 David E. Box
  2017-09-06 20:56 ` Joe Konno
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David E. Box @ 2017-09-06 20:20 UTC (permalink / raw)
  To: grub-devel

On efi systems, make efi based tsc calibration the default, followed by
the pmtimer before using the pit. This prevents Grub boot failure on
newer x86 systems that power gate the pit.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
---
 grub-core/kern/i386/tsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/kern/i386/tsc.c b/grub-core/kern/i386/tsc.c
index 2e85289d8..de4057ddb 100644
--- a/grub-core/kern/i386/tsc.c
+++ b/grub-core/kern/i386/tsc.c
@@ -68,7 +68,7 @@ grub_tsc_init (void)
 #ifdef GRUB_MACHINE_XEN
   (void) (grub_tsc_calibrate_from_xen () || calibrate_tsc_hardcode());
 #elif defined (GRUB_MACHINE_EFI)
-  (void) (grub_tsc_calibrate_from_pit () || grub_tsc_calibrate_from_pmtimer () || grub_tsc_calibrate_from_efi() || calibrate_tsc_hardcode());
+  (void) (grub_tsc_calibrate_from_efi () || grub_tsc_calibrate_from_pmtimer () || grub_tsc_calibrate_from_pit () || calibrate_tsc_hardcode());
 #elif defined (GRUB_MACHINE_COREBOOT)
   (void) (grub_tsc_calibrate_from_pmtimer () || grub_tsc_calibrate_from_pit () || calibrate_tsc_hardcode());
 #else
-- 
2.13.5



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

end of thread, other threads:[~2017-09-15 22:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-06 20:20 [PATCH] tsc: Change default tsc calibration method to EFI on EFI systems David E. Box
2017-09-06 20:56 ` Joe Konno
2017-09-12  7:10 ` Paul Menzel
2017-09-12 23:40   ` David E. Box
2017-09-12 23:46 ` Vladimir 'phcoder' Serbinenko
2017-09-15 22:06   ` David E. Box

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.