mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
The previous fix was bogus on the i7, so now it is fixed to what the previous value was
git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@86 3b4be424-7ac5-41d7-8526-f4ddcb85d872
This commit is contained in:
parent
75934f2538
commit
e28b38aa1e
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ int cpu_clock_by_ic(int millis, int runs)
|
|||
} while (t1 - t0 < tl * (uint64_t) 8);
|
||||
// cpu_Hz = cycles_inner * cycles_outer * 256 / (t1 - t0) * 1000000
|
||||
debugf(2, "c = %d, td = %llu\n", c, t1 - t0);
|
||||
hz = ((uint64_t) cycles_inner * (uint64_t) 258 + 12) *
|
||||
hz = ((uint64_t) cycles_inner * (uint64_t) 256 + 12) *
|
||||
(uint64_t) cycles_outer * (uint64_t) sse_multiplier * (uint64_t) c * (uint64_t) 1000000
|
||||
/ (t1 - t0);
|
||||
cur_value = (int) (hz / 1000000);
|
||||
|
|
Loading…
Reference in a new issue