From 8c10017aa7eeb4f58da1fc353d7af3ecb69e4bf7 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 30 Jul 2024 19:48:03 +0200 Subject: ArmVirtPkg/PrePi: Drop call to TimerConstructor() Drop the call to the TimerConstructor, which should not be called explicitly, and does nothing useful to begin with. Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/PrePi/PrePi.c | 2 -- ArmVirtPkg/PrePi/PrePi.h | 6 ------ 2 files changed, 8 deletions(-) diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c index f27e0ad3d2..9dbb5af942 100755 --- a/ArmVirtPkg/PrePi/PrePi.c +++ b/ArmVirtPkg/PrePi/PrePi.c @@ -109,8 +109,6 @@ CEntryPoint ( UINT64 StartTimeStamp; if (PerformanceMeasurementEnabled ()) { - // Initialize the Timer Library to setup the Timer HW controller - TimerConstructor (); // We cannot call yet the PerformanceLib because the HOB List has not been initialized StartTimeStamp = GetPerformanceCounter (); } else { diff --git a/ArmVirtPkg/PrePi/PrePi.h b/ArmVirtPkg/PrePi/PrePi.h index 4bb9791e40..c00899b338 100644 --- a/ArmVirtPkg/PrePi/PrePi.h +++ b/ArmVirtPkg/PrePi/PrePi.h @@ -22,12 +22,6 @@ #define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1); -RETURN_STATUS -EFIAPI -TimerConstructor ( - VOID - ); - VOID PrePiMain ( IN UINTN UefiMemoryBase, -- cgit v1.2.3