audk/PcAtChipsetPkg/Library/AcpiTimerLib
Nate DeSimone df2ec2aab0 PcAtChipsetPkg: Fix AcpiTimerLib incompatibility with XhciDxe
The DXE & MM standalone variant of AcpiTimerLib defines a global
named mPerformanceCounterFrequency. A global with an identical
name is also present in MdeModulePkg/Bus/Pci/XhciDxe/Xhci.c

Since XhciDxe has a dependency on TimerLib, this can cause link
errors due to the same symbol being defined twice if the platform
DSC chooses to use AcpiTimerLib as the TimerLib implementation for
any given platform.

To resolve this, I have changed made the definition of
mPerformanceCounterFrequency to static and renamed it to
mAcpiTimerLibTscFrequency. Since this variable is not used outside
of the DxeStandaloneMmAcpiTimerLib.c compilation unit, there is no
reason to have it exported as a global.

Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2023-12-06 22:45:20 +00:00
..
AcpiTimerLib.c PcAtChipsetPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BaseAcpiTimerLib.c PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
BaseAcpiTimerLib.inf PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
BaseAcpiTimerLib.uni PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
DxeAcpiTimerLib.c PcAtChipsetPkg: AcpiTimerLib: Added StandaloneMm instance of AcpiTimerLib 2021-02-01 10:03:35 -08:00
DxeAcpiTimerLib.inf PcAtChipsetPkg: AcpiTimerLib: Added StandaloneMm instance of AcpiTimerLib 2021-02-01 10:03:35 -08:00
DxeAcpiTimerLib.uni PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
DxeStandaloneMmAcpiTimerLib.c PcAtChipsetPkg: Fix AcpiTimerLib incompatibility with XhciDxe 2023-12-06 22:45:20 +00:00
DxeStandaloneMmAcpiTimerLib.h PcAtChipsetPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiAcpiTimerLib.c PcAtChipsetPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiAcpiTimerLib.inf PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
PeiAcpiTimerLib.uni PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
StandaloneMmAcpiTimerLib.c PcAtChipsetPkg: AcpiTimerLib: Added StandaloneMm instance of AcpiTimerLib 2021-02-01 10:03:35 -08:00
StandaloneMmAcpiTimerLib.inf PcAtChipsetPkg: AcpiTimerLib: Added StandaloneMm instance of AcpiTimerLib 2021-02-01 10:03:35 -08:00