Lines Matching refs:ratio

42  * we increment the confidence counter for the given target ratio.
48 * idle ratio. Similar to frequency modulation.
56 /* Idle ratio observed using package C-state counters */
263 MODULE_PARM_DESC(max_idle, "maximum injected idle time to the total CPU time ratio in percent range:1-100");
311 "\tpowerclamp controls idle ratio within this window. larger\n"
399 static unsigned int get_compensation(int ratio)
407 if (ratio == 1 &&
408 cal_data[ratio].confidence >= CONFIDENCE_OK &&
409 cal_data[ratio + 1].confidence >= CONFIDENCE_OK &&
410 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) {
411 comp = (cal_data[ratio].steady_comp +
412 cal_data[ratio + 1].steady_comp +
413 cal_data[ratio + 2].steady_comp) / 3;
414 } else if (ratio == MAX_TARGET_RATIO - 1 &&
415 cal_data[ratio].confidence >= CONFIDENCE_OK &&
416 cal_data[ratio - 1].confidence >= CONFIDENCE_OK &&
417 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) {
418 comp = (cal_data[ratio].steady_comp +
419 cal_data[ratio - 1].steady_comp +
420 cal_data[ratio - 2].steady_comp) / 3;
421 } else if (cal_data[ratio].confidence >= CONFIDENCE_OK &&
422 cal_data[ratio - 1].confidence >= CONFIDENCE_OK &&
423 cal_data[ratio + 1].confidence >= CONFIDENCE_OK) {
424 comp = (cal_data[ratio].steady_comp +
425 cal_data[ratio - 1].steady_comp +
426 cal_data[ratio + 1].steady_comp) / 3;
430 if (comp + ratio >= MAX_TARGET_RATIO)
431 comp = MAX_TARGET_RATIO - ratio - 1;
470 /* calculate pkg cstate vs tsc ratio */
490 * This function calculates runtime from the current target ratio.
499 * make sure user selected ratio does not take effect until
508 * c-states, thus we need to compensate the injected idle ratio
523 * to monitor actual idle ratio.
539 /* calculate pkg cstate vs tsc ratio */