1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Increase CPU clock accuracy in bus clock calculation

The CPU clock is computed once and cached, so it needs to be accurate. In libcpuid.h, 100ms is recommended.
This commit is contained in:
Xorg 2016-08-30 11:11:36 +02:00
parent 4a077265fd
commit 77c6a9a666

View file

@ -832,7 +832,7 @@ static double get_info_bus_clock(struct msr_driver_t* handle, struct cpu_id_t *i
uint64_t reg;
if(clock == 0)
clock = cpu_clock_measure(50, 1);
clock = cpu_clock_measure(100, 1);
if(id->vendor == VENDOR_INTEL) {
/* Refer links above