audk/PcAtChipsetPkg
Star Zeng a012df5ec6 PcAtChipsetPkg AcpiTimerLib: Wait 363 ACPI timer counts to get TSC Freq
Compute the number of ticks to wait to measure TSC frequency.
Instead of (ACPI_TIMER_FREQUENCY / 10000) = 357 and 357 * 10000 = 3570000,
use 363 * 9861 = 3579543 Hz which is within 2 Hz of ACPI_TIMER_FREQUENCY.
363 counts is a calibration time of 101.4 uS.

The idea comes from Michael and Paolo.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Paul A Lohr <paul.a.lohr@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2016-08-18 11:01:54 +08:00
..
8254TimerDxe PcAtChipsetPkg: Fix typos in comments 2016-07-11 10:29:47 +08:00
8259InterruptControllerDxe PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00
Bus/Pci/IdeControllerDxe PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00
HpetTimerDxe PcAtChipsetPkg: Fix typos in comments 2016-07-11 10:29:47 +08:00
Include Add "#ifdef ... #define ... #endif" check for the header file. 2011-09-07 02:42:52 +00:00
IsaAcpiDxe PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00
KbcResetDxe PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00
Library PcAtChipsetPkg AcpiTimerLib: Wait 363 ACPI timer counts to get TSC Freq 2016-08-18 11:01:54 +08:00
PcatRealTimeClockRuntimeDxe PcAtChipsetPkg/PcRtc: Fix a NULL pointer deference issue 2016-07-27 10:27:16 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
PcAtChipsetPkg.dec PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value 2016-06-28 10:08:58 +08:00
PcAtChipsetPkg.dsc PcAtChipsetPkg DSC: Add build option to disable deprecated APIs 2016-08-08 11:00:09 +08:00
PcAtChipsetPkg.uni PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value 2016-06-28 10:08:58 +08:00
PcAtChipsetPkgExtra.uni PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00