From e76b248d8fc37832a880121551b0780501f14308 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 30 Jul 2024 19:49:35 +0200 Subject: [PATCH] ArmPlatformPkg/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 --- ArmPlatformPkg/PrePi/PrePi.c | 2 -- ArmPlatformPkg/PrePi/PrePi.h | 6 ------ 2 files changed, 8 deletions(-) diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c index 8cc43093b9..f16084673e 100644 --- a/ArmPlatformPkg/PrePi/PrePi.c +++ b/ArmPlatformPkg/PrePi/PrePi.c @@ -172,8 +172,6 @@ CEntryPoint ( ArmPlatformInitialize (MpId); 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/ArmPlatformPkg/PrePi/PrePi.h b/ArmPlatformPkg/PrePi/PrePi.h index b4ba292c32..4d6e3251d7 100644 --- a/ArmPlatformPkg/PrePi/PrePi.h +++ b/ArmPlatformPkg/PrePi/PrePi.h @@ -23,12 +23,6 @@ extern UINT64 mSystemMemoryEnd; -RETURN_STATUS -EFIAPI -TimerConstructor ( - VOID - ); - EFI_STATUS EFIAPI MemoryPeim (