2018-04-11 18:42:03 +00:00
|
|
|
From 2e5b957292d3f313d48bded25e8ca83468326c5b Mon Sep 17 00:00:00 2001
|
2018-01-17 20:40:19 +00:00
|
|
|
From: "David E. Box" <david.e.box@linux.intel.com>
|
|
|
|
Date: Fri, 15 Sep 2017 15:37:05 -0700
|
2018-05-16 15:10:54 +00:00
|
|
|
Subject: [PATCH 196/250] tsc: Change default tsc calibration method to pmtimer
|
2018-01-17 20:40:19 +00:00
|
|
|
on EFI systems
|
|
|
|
|
|
|
|
On efi systems, make pmtimer based tsc calibration the default over the
|
|
|
|
pit. This prevents Grub from hanging on Intel SoC systems that power gate
|
|
|
|
the pit.
|
|
|
|
|
|
|
|
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
|
|
|
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.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
|
2018-02-27 18:56:41 +00:00
|
|
|
index 2e85289d848..f266eb13185 100644
|
2018-01-17 20:40:19 +00:00
|
|
|
--- 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_pmtimer () || grub_tsc_calibrate_from_pit () || grub_tsc_calibrate_from_efi() || calibrate_tsc_hardcode());
|
|
|
|
#elif defined (GRUB_MACHINE_COREBOOT)
|
|
|
|
(void) (grub_tsc_calibrate_from_pmtimer () || grub_tsc_calibrate_from_pit () || calibrate_tsc_hardcode());
|
|
|
|
#else
|
|
|
|
--
|
2018-05-16 15:10:54 +00:00
|
|
|
2.14.3
|
2018-01-17 20:40:19 +00:00
|
|
|
|