Branch: Tag:

2011-04-02

2011-04-02 12:55:21 by Martin Stjernholm <mast@lysator.liu.se>

Raised the limit for capping the tsc interval.

Since it can have such a high variance due to the low clock(3)
resolution.

1405: Inside #if defined(RDTSC) && defined(USE_CLOCK_FOR_SLICES)
   * 1/200 sec. */    INT64 new_target_int =    (tsc_elapsed * (CLOCKS_PER_SEC / 400)) / tsc_interval_time; -  if (new_target_int < target_int << 1) +  if (new_target_int < target_int << 2)    target_int = new_target_int;    else {    /* The most likely cause for this is high variance in the
1417: Inside #if defined(RDTSC) && defined(USE_CLOCK_FOR_SLICES)
   target_int, new_target_int);   #endif    /* The + 1 is paranoia just in case it has become zero somehow. */ -  target_int = (target_int << 1) + 1; +  target_int = (target_int << 2) + 1;    }    prev_tsc = tsc_now;    prev_clock = clock_now;