Lines Matching refs:tmp_freq
223 int tmp_freq;
231 tmp_freq = (stock_freq * tmp_off) / i;
234 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) {
237 old_tmp_freq = tmp_freq;
333 unsigned int tmp_freq = 0;
349 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2);
350 if (tmp_freq < policy->min)
351 tmp_freq += stock_freq / max_duration;
352 policy->min = tmp_freq;
354 policy->max = tmp_freq;
355 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2);
356 if (tmp_freq > policy->max)
357 tmp_freq -= stock_freq / max_duration;
358 policy->max = tmp_freq;
376 unsigned int tmp_freq;
383 tmp_freq = gx_validate_speed(target_freq, &tmp1, &tmp2);
384 while (tmp_freq < policy->min) {
385 tmp_freq += stock_freq / max_duration;
386 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2);
388 while (tmp_freq > policy->max) {
389 tmp_freq -= stock_freq / max_duration;
390 tmp_freq = gx_validate_speed(tmp_freq, &tmp1, &tmp2);
393 gx_set_cpuspeed(policy, tmp_freq);