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