mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
8c6b1ac71e
Also include some minor fixes for gcc 5.1.1 Signed-off-by: Peter Jones <pjones@redhat.com>
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From c89ce9e7afd7b6b2aba2dd83a2c1faf4cf651262 Mon Sep 17 00:00:00 2001
|
|
From: Mark Salter <msalter@redhat.com>
|
|
Date: Thu, 20 Feb 2014 12:54:52 -0500
|
|
Subject: [PATCH 482/506] Reduce timer event frequency by 10
|
|
|
|
Timer event to keep grub msec counter was running at 1000HZ. This was too
|
|
fast for UEFI timer driver and resulted in a 10x slowdown in grub time
|
|
versus wallclock. Reduce the timer event frequency and increase tick
|
|
increment accordingly to keep better time.
|
|
|
|
Signed-off-by: Mark Salter <msalter@redhat.com>
|
|
---
|
|
grub-core/kern/arm/efi/init.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/grub-core/kern/arm/efi/init.c b/grub-core/kern/arm/efi/init.c
|
|
index 2572ca8..06df60e 100644
|
|
--- a/grub-core/kern/arm/efi/init.c
|
|
+++ b/grub-core/kern/arm/efi/init.c
|
|
@@ -38,7 +38,7 @@ static void
|
|
increment_timer (grub_efi_event_t event __attribute__ ((unused)),
|
|
void *context __attribute__ ((unused)))
|
|
{
|
|
- tmr++;
|
|
+ tmr += 10;
|
|
}
|
|
|
|
void
|
|
@@ -52,7 +52,7 @@ grub_machine_init (void)
|
|
|
|
efi_call_5 (b->create_event, GRUB_EFI_EVT_TIMER | GRUB_EFI_EVT_NOTIFY_SIGNAL,
|
|
GRUB_EFI_TPL_CALLBACK, increment_timer, NULL, &tmr_evt);
|
|
- efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_PERIODIC, 10000);
|
|
+ efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_PERIODIC, 100000);
|
|
|
|
grub_install_get_time_ms (grub_efi_get_time_ms);
|
|
}
|
|
--
|
|
2.4.3
|
|
|