From a4928a0cfc269d268f6832111e2c4435fde366b8 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Thu, 16 Jan 2025 16:01:46 +0100 Subject: [PATCH] ArmPkg/ArmGic: Remove ArmGicEndOfInterrupt () API ArmGicEndOfInterrupt () is never used: the v2 and v3 versions of the driver call respective specific versions directly, and so this API can be removed. Signed-off-by: Ard Biesheuvel --- ArmPkg/Drivers/ArmGic/ArmGicLib.c | 19 ------------------- ArmPkg/Include/Library/ArmGicLib.h | 7 ------- 2 files changed, 26 deletions(-) diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c index 5f07d0562c..9e6dacdc4f 100644 --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c @@ -137,25 +137,6 @@ ArmGicGetMaxNumInterrupts ( return (ItLines == 0x1f) ? 1020 : 32 * (ItLines + 1); } -VOID -EFIAPI -ArmGicEndOfInterrupt ( - IN UINTN GicInterruptInterfaceBase, - IN UINTN Source - ) -{ - ARM_GIC_ARCH_REVISION Revision; - - Revision = ArmGicGetSupportedArchRevision (); - if (Revision == ARM_GIC_ARCH_REVISION_2) { - ArmGicV2EndOfInterrupt (GicInterruptInterfaceBase, Source); - } else if (Revision == ARM_GIC_ARCH_REVISION_3) { - ArmGicV3EndOfInterrupt (Source); - } else { - ASSERT_EFI_ERROR (EFI_UNSUPPORTED); - } -} - VOID EFIAPI ArmGicSetInterruptPriority ( diff --git a/ArmPkg/Include/Library/ArmGicLib.h b/ArmPkg/Include/Library/ArmGicLib.h index 70c80cfb05..725ee268af 100644 --- a/ArmPkg/Include/Library/ArmGicLib.h +++ b/ArmPkg/Include/Library/ArmGicLib.h @@ -151,13 +151,6 @@ ArmGicGetMaxNumInterrupts ( IN UINTN GicDistributorBase ); -VOID -EFIAPI -ArmGicEndOfInterrupt ( - IN UINTN GicInterruptInterfaceBase, - IN UINTN Source - ); - UINTN EFIAPI ArmGicSetPriorityMask (