Branch: Tag:

2010-10-24

2010-10-24 18:02:05 by Martin Stjernholm <mast@lysator.liu.se>

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