]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciHostBridge: Count the (mm)io overhead when polling
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 23 Apr 2018 06:20:26 +0000 (14:20 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 9 May 2018 06:03:09 +0000 (14:03 +0800)
commit0edb7ec5ced0a28b93bf8c13b12f0a277c44dbbc
tree091cdf7c1c1df4b6889b9e0582d53c10ba71603f
parentb22a62be5cdc8fd19d87ec1ecfa5b28fb9be50ad
MdeModulePkg/PciHostBridge: Count the (mm)io overhead when polling

RootBridgeIo.PollMem()/PollIo() originally don't count the IO/MMIO
access overhead when delaying.
The patch changes the implementation to count the access overhead
so that the actually delay equals to user required delay.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.h
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridge.h
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c