Lines Matching refs:ratio

48  * we increment the confidence counter for the given target ratio.
54 * idle ratio. Similar to frequency modulation.
174 "\tpowerclamp controls idle ratio within this window. larger\n"
262 static unsigned int get_compensation(int ratio)
270 if (ratio == 1 &&
271 cal_data[ratio].confidence >= CONFIDENCE_OK &&
272 cal_data[ratio + 1].confidence >= CONFIDENCE_OK &&
273 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) {
274 comp = (cal_data[ratio].steady_comp +
275 cal_data[ratio + 1].steady_comp +
276 cal_data[ratio + 2].steady_comp) / 3;
277 } else if (ratio == MAX_TARGET_RATIO - 1 &&
278 cal_data[ratio].confidence >= CONFIDENCE_OK &&
279 cal_data[ratio - 1].confidence >= CONFIDENCE_OK &&
280 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) {
281 comp = (cal_data[ratio].steady_comp +
282 cal_data[ratio - 1].steady_comp +
283 cal_data[ratio - 2].steady_comp) / 3;
284 } else if (cal_data[ratio].confidence >= CONFIDENCE_OK &&
285 cal_data[ratio - 1].confidence >= CONFIDENCE_OK &&
286 cal_data[ratio + 1].confidence >= CONFIDENCE_OK) {
287 comp = (cal_data[ratio].steady_comp +
288 cal_data[ratio - 1].steady_comp +
289 cal_data[ratio + 1].steady_comp) / 3;
294 comp = ratio;
296 if (comp + ratio >= MAX_TARGET_RATIO)
297 comp = MAX_TARGET_RATIO - ratio - 1;
340 /* calculate pkg cstate vs tsc ratio */
378 * make sure user selected ratio does not take effect until
390 * c-states, thus we need to compensate the injected idle ratio
443 * to monitor actual idle ratio.
459 /* calculate pkg cstate vs tsc ratio */
617 /* to save power, do not poll idle ratio while not clamping */