Lines Matching full: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…
311 "\tpowerclamp controls idle ratio within this window. larger\n"
399 static unsigned int get_compensation(int ratio) in get_compensation() argument
407 if (ratio == 1 && in get_compensation()
408 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
409 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
410 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
411 comp = (cal_data[ratio].steady_comp + in get_compensation()
412 cal_data[ratio + 1].steady_comp + in get_compensation()
413 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
414 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation()
415 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
416 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
417 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) { in get_compensation()
418 comp = (cal_data[ratio].steady_comp + in get_compensation()
419 cal_data[ratio - 1].steady_comp + in get_compensation()
420 cal_data[ratio - 2].steady_comp) / 3; in get_compensation()
421 } else if (cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
422 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
423 cal_data[ratio + 1].confidence >= CONFIDENCE_OK) { in get_compensation()
424 comp = (cal_data[ratio].steady_comp + in get_compensation()
425 cal_data[ratio - 1].steady_comp + in get_compensation()
426 cal_data[ratio + 1].steady_comp) / 3; in get_compensation()
430 if (comp + ratio >= MAX_TARGET_RATIO) in get_compensation()
431 comp = MAX_TARGET_RATIO - ratio - 1; in get_compensation()
470 /* calculate pkg cstate vs tsc ratio */ in powerclamp_adjust_controls()
490 * This function calculates runtime from the current target ratio.
499 * make sure user selected ratio does not take effect until in get_run_time()
508 * c-states, thus we need to compensate the injected idle ratio in get_run_time()
523 * to monitor actual idle ratio.
539 /* calculate pkg cstate vs tsc ratio */ in poll_pkg_cstate()