Searched refs:stock_freq (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/cpufreq/
H A Dgx-suspmod.c46 * on_duration = off_duration * (stock_freq - freq) / freq
48 * off_duration = (freq * DURATION) / stock_freq
125 static int stock_freq; variable
209 return stock_freq; gx_get_cpuspeed()
211 return (stock_freq * gx_params->off_duration) gx_get_cpuspeed()
226 int old_tmp_freq = stock_freq; gx_validate_speed()
233 tmp_off = ((khz * i) / stock_freq) & 0xff; gx_validate_speed()
235 tmp_freq = (stock_freq * tmp_off) / i; gx_validate_speed()
271 if (new_khz != stock_freq) { gx_set_cpuspeed()
340 if (!stock_freq || !policy) cpufreq_gx_verify()
344 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), cpufreq_gx_verify()
345 stock_freq); cpufreq_gx_verify()
355 tmp_freq += stock_freq / max_duration; cpufreq_gx_verify()
361 tmp_freq -= stock_freq / max_duration; cpufreq_gx_verify()
365 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), cpufreq_gx_verify()
366 stock_freq); cpufreq_gx_verify()
382 if (!stock_freq || !policy) cpufreq_gx_target()
389 tmp_freq += stock_freq / max_duration; cpufreq_gx_target()
393 tmp_freq -= stock_freq / max_duration; cpufreq_gx_target()
417 stock_freq = maxfreq; cpufreq_gx_cpu_init()
H A Dp4-clockmod.c53 static unsigned int stock_freq; variable
196 stock_freq = cpufreq_p4_get_frequency(c); cpufreq_p4_cpu_init()
197 if (!stock_freq) cpufreq_p4_cpu_init()
205 p4clockmod_table[i].frequency = (stock_freq * i)/8; cpufreq_p4_cpu_init()
231 return stock_freq * l / 8; cpufreq_p4_get()
233 return stock_freq; cpufreq_p4_get()

Completed in 208 milliseconds