summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2024-07-30 19:48:03 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-08-01 14:55:03 +0000
commit8c10017aa7eeb4f58da1fc353d7af3ecb69e4bf7 (patch)
treec5a0b40574bd558b22c72b94b9c4765982601b2c
parent1941a901f08893dfc2f2cb8a44c6172a9f7ae8e4 (diff)
downloadedk2-8c10017aa7eeb4f58da1fc353d7af3ecb69e4bf7.tar.gz
edk2-8c10017aa7eeb4f58da1fc353d7af3ecb69e4bf7.tar.bz2
edk2-8c10017aa7eeb4f58da1fc353d7af3ecb69e4bf7.zip
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 <ardb@kernel.org>
-rwxr-xr-xArmVirtPkg/PrePi/PrePi.c2
-rw-r--r--ArmVirtPkg/PrePi/PrePi.h6
2 files changed, 0 insertions, 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,