summaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_detect.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-07-16 23:14:38 -0700
committerGitHub <noreply@github.com>2022-07-16 23:14:38 -0700
commit8ca8281f4f2d4050ec4eb67db422d5ceb3cabb3a (patch)
tree10fc191d058f7d057cbe41bc875054080774893d /src/common/x64/cpu_detect.h
parent7d66f8339e4243c74c54b43cfbc3e944fbecb3e8 (diff)
parente71d457af923f373505729fe5a335e6768f6144a (diff)
Merge pull request #8543 from BreadFish64/use_tsc_from_caps
common/x64: Use TSC clock rate from CPUID when available
Diffstat (limited to 'src/common/x64/cpu_detect.h')
-rw-r--r--src/common/x64/cpu_detect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h
index 9bdc9dbfa..6830f3795 100644
--- a/src/common/x64/cpu_detect.h
+++ b/src/common/x64/cpu_detect.h
@@ -30,6 +30,11 @@ struct CPUCaps {
u32 max_frequency;
u32 bus_frequency;
+ u32 tsc_crystal_ratio_denominator;
+ u32 tsc_crystal_ratio_numerator;
+ u32 crystal_frequency;
+ u64 tsc_frequency; // Derived from the above three values
+
bool sse : 1;
bool sse2 : 1;
bool sse3 : 1;