Lines Matching refs:ratio

42  * we increment the confidence counter for the given target ratio.
48 * idle ratio. Similar to frequency modulation.
55 /* Idle ratio observed using package C-state counters */
262 MODULE_PARM_DESC(max_idle, "maximum injected idle time to the total CPU time ratio in percent range:1-100");
310 "\tpowerclamp controls idle ratio within this window. larger\n"
370 static unsigned int get_compensation(int ratio)
378 if (ratio == 1 &&
379 cal_data[ratio].confidence >= CONFIDENCE_OK &&
380 cal_data[ratio + 1].confidence >= CONFIDENCE_OK &&
381 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) {
382 comp = (cal_data[ratio].steady_comp +
383 cal_data[ratio + 1].steady_comp +
384 cal_data[ratio + 2].steady_comp) / 3;
385 } else if (ratio == MAX_TARGET_RATIO - 1 &&
386 cal_data[ratio].confidence >= CONFIDENCE_OK &&
387 cal_data[ratio - 1].confidence >= CONFIDENCE_OK &&
388 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) {
389 comp = (cal_data[ratio].steady_comp +
390 cal_data[ratio - 1].steady_comp +
391 cal_data[ratio - 2].steady_comp) / 3;
392 } else if (cal_data[ratio].confidence >= CONFIDENCE_OK &&
393 cal_data[ratio - 1].confidence >= CONFIDENCE_OK &&
394 cal_data[ratio + 1].confidence >= CONFIDENCE_OK) {
395 comp = (cal_data[ratio].steady_comp +
396 cal_data[ratio - 1].steady_comp +
397 cal_data[ratio + 1].steady_comp) / 3;
401 if (comp + ratio >= MAX_TARGET_RATIO)
402 comp = MAX_TARGET_RATIO - ratio - 1;
441 /* calculate pkg cstate vs tsc ratio */
461 * This function calculates runtime from the current target ratio.
470 * make sure user selected ratio does not take effect until
479 * c-states, thus we need to compensate the injected idle ratio
494 * to monitor actual idle ratio.
510 /* calculate pkg cstate vs tsc ratio */