audk/ArmPkg/Drivers
Ard Biesheuvel eadbec0109 ArmPkg: reduce sysreg access count in GIC revision probe
Accesses to system registers are disproportionately heavy-weight
when executed under virtualization, since each one involves two
world switches (from guest to host and back again).

So change the sequence that enables the GIC SRE interface so that
it performs only a single sysreg read to test whether the SRE
interface is enabled already, and only performs a write and an
additional read if that turns out not to be the case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17596 6f19259b-4bc3-4df7-8a09-765794883524
2015-06-09 09:28:06 +00:00
..
ArmCpuLib ArmPkg: Move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib 2014-09-09 16:10:18 +00:00
ArmGic ArmPkg: reduce sysreg access count in GIC revision probe 2015-06-09 09:28:06 +00:00
CpuDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
CpuPei ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
GenericWatchdogDxe ArmPkg/GenericWatchdogDxe: Set up the watchdog timeout relatively to the system counter 2014-12-12 19:10:58 +00:00
TimerDxe ArmPkg: allow HYP timer interrupt to be omitted 2015-02-28 20:24:57 +00:00