All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] tsc: Change default tsc calibration method to pmtimer on EFI systems
@ 2017-09-15 22:37 David E. Box
  2017-09-28 20:51 ` Daniel Kiper
  0 siblings, 1 reply; 3+ messages in thread
From: David E. Box @ 2017-09-15 22:37 UTC (permalink / raw)
  To: grub-devel

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>
---
ChangeLog:

v2: Make pmtimer the default. Keep the rest in the original order.

v1: Make efi timer the default followed by the pmtimer.

 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..5b9da7c86 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_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
-- 
2.13.5



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

* Re: [PATCH v2] tsc: Change default tsc calibration method to pmtimer on EFI systems
  2017-09-15 22:37 [PATCH v2] tsc: Change default tsc calibration method to pmtimer on EFI systems David E. Box
@ 2017-09-28 20:51 ` Daniel Kiper
  2017-10-06 15:02   ` Daniel Kiper
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kiper @ 2017-09-28 20:51 UTC (permalink / raw)
  To: david.e.box; +Cc: grub-devel

On Fri, Sep 15, 2017 at 03:37:05PM -0700, David E. Box wrote:
> 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>

LGTM. If there are no objections I will apply this next week.

Daniel


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

* Re: [PATCH v2] tsc: Change default tsc calibration method to pmtimer on EFI systems
  2017-09-28 20:51 ` Daniel Kiper
@ 2017-10-06 15:02   ` Daniel Kiper
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Kiper @ 2017-10-06 15:02 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: david.e.box

On Thu, Sep 28, 2017 at 10:51:05PM +0200, Daniel Kiper wrote:
> On Fri, Sep 15, 2017 at 03:37:05PM -0700, David E. Box wrote:
> > 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>
>
> LGTM. If there are no objections I will apply this next week.

Committed!

Thanks,

Daniel


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-15 22:37 [PATCH v2] tsc: Change default tsc calibration method to pmtimer on EFI systems David E. Box
2017-09-28 20:51 ` Daniel Kiper
2017-10-06 15:02   ` Daniel Kiper

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.