]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.c
ArmPkg: cache detected revision in ArmGicArchLib
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 28 Jul 2015 20:45:10 +0000 (20:45 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 28 Jul 2015 20:45:10 +0000 (20:45 +0000)
commitf94522c823610a4b44486835aca195c267bd3953
treec6e89207fd96cd4b67dba763ce74a4bf429da231
parente9e9c7e8a4a987f9e68c016514aa8b60570a6450
ArmPkg: cache detected revision in ArmGicArchLib

Instead of inferring the GIC revision from the CPU id registers
and the presence/availability of the system register interface
upon each invocation, move the logic to a constructor and cache
the result.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18100 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Library/ArmGicArchLib/AArch64/ArmGicArchLib.c
ArmPkg/Library/ArmGicArchLib/Arm/ArmGicArchLib.c
ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf