2015-09-28
2015-09-28 14:35:35 by Martin Nilsson <nilsson@fastmail.com>
-
fb09e94965d1810fa6b91a2830565a849443f674
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 8.1
Set x86_get_cpuid response order to eax,ebx,edx,ecx in all cases.
3362: Inside #if defined(RDTSC) && defined(USE_CLOCK_FOR_SLICES)
{
INT32 cpuid[4];
x86_get_cpuid (1, cpuid);
- use_tsc_for_slices = cpuid[3] & 0x10; /* TSC exists */
+ use_tsc_for_slices = cpuid[2] & 0x10; /* TSC exists */
#if 0
/* Skip tsc invariant check - the current tsc interval method
* should be robust enough to cope with variable tsc rates. */
if (use_tsc_for_slices) {
x86_get_cpuid (0x80000007, cpuid);
- use_tsc_for_slices = cpuid[3] & 0x100; /* TSC is invariant */
+ use_tsc_for_slices = cpuid[2] & 0x100; /* TSC is invariant */
}
#endif
}