2010-10-24
2010-10-24 18:02:05 by Martin Stjernholm <mast@lysator.liu.se>
-
927d3c710499e1ea54ab005c9fede7fc0b61ad1b
(5 lines)
(+5/-0)
[
Show
| Annotate
]
Branch: 7.9
Enable the tsc optimization for variable tsc's.
3084: Inside #if defined(RDTSC) && defined(USE_CLOCK_FOR_SLICES)
x86_get_cpuid (1, cpuid);
/* fprintf (stderr, "cpuid 1: %x\n", cpuid[2]); */
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);
/* fprintf (stderr, "cpuid 0x80000007: %x\n", cpuid[2]); */
use_tsc_for_slices = cpuid[2] & 0x100; /* TSC is invariant */
}
-
+ #endif
/* fprintf (stderr, "use tsc: %d\n", use_tsc_for_slices); */
}
#endif