Blame SOURCES/0139-Reduce-timer-event-frequency-by-10.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Mark Salter <msalter@redhat.com>
a85e8e
Date: Thu, 20 Feb 2014 12:54:52 -0500
d41074
Subject: [PATCH] Reduce timer event frequency by 10
a85e8e
a85e8e
Timer event to keep grub msec counter was running at 1000HZ. This was too
a85e8e
fast for UEFI timer driver and resulted in a 10x slowdown in grub time
a85e8e
versus wallclock. Reduce the timer event frequency and increase tick
a85e8e
increment accordingly to keep better time.
a85e8e
a85e8e
Signed-off-by: Mark Salter <msalter@redhat.com>
a85e8e
---
a85e8e
 grub-core/kern/arm/efi/init.c | 4 ++--
a85e8e
 1 file changed, 2 insertions(+), 2 deletions(-)
a85e8e
a85e8e
diff --git a/grub-core/kern/arm/efi/init.c b/grub-core/kern/arm/efi/init.c
d41074
index a6ae03475cc..0c17d8390fa 100644
a85e8e
--- a/grub-core/kern/arm/efi/init.c
a85e8e
+++ b/grub-core/kern/arm/efi/init.c
a85e8e
@@ -38,7 +38,7 @@ static void
a85e8e
 increment_timer (grub_efi_event_t event __attribute__ ((unused)),
a85e8e
 		 void *context __attribute__ ((unused)))
a85e8e
 {
a85e8e
-  tmr++;
a85e8e
+  tmr += 10;
a85e8e
 }
a85e8e
 
a85e8e
 void
a85e8e
@@ -52,7 +52,7 @@ grub_machine_init (void)
a85e8e
 
a85e8e
   efi_call_5 (b->create_event, GRUB_EFI_EVT_TIMER | GRUB_EFI_EVT_NOTIFY_SIGNAL,
a85e8e
 	      GRUB_EFI_TPL_CALLBACK, increment_timer, NULL, &tmr_evt);
a85e8e
-  efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_PERIODIC, 10000);
a85e8e
+  efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_PERIODIC, 100000);
a85e8e
 
a85e8e
   grub_install_get_time_ms (grub_efi_get_time_ms);
a85e8e
 }