pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:3077:    co_init( & live_threads_change);    co_init( & threads_disabled_change);    thread_table_init();      #if defined(RDTSC) && defined(USE_CLOCK_FOR_SLICES)    {    INT32 cpuid[4];    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       th_running = 1;   }      static struct object *backend_thread_obj = NULL;      void th_init(void)