Ejemplo n.º 1
0
/*
  02/22/2010.  Attempt to determine processor clock rate even when
  speed step is in use.  Keep running CPU-intensive task until
  determine maximum clock rate.
*/
double mhz(int verbose) {
    double maxval = 0.0;
    /* Temporary fix to specific machine */
    double val = core_mhz(verbose);
    /* Revert back to original code */
    return val;
    /* This was the new method */
    while (val != maxval) {
	burn_cpu();
	if (val > maxval)
	    maxval = val;
	val = core_mhz(verbose);
    }
    return val;
}
Ejemplo n.º 2
0
double mhz(int verbose) {
    double val = core_mhz(verbose);
    return val;
}