Lines Matching +full:100 +full:khz
93 #define PCI_VIDTC 0x8d /* video speedup timer counter register: typical 50 to 100ms */
136 * though. 781.25 kHz(!) for a 200 MHz processor -- wow. */
221 static unsigned int gx_validate_speed(unsigned int khz, u8 *on_duration, in gx_validate_speed() argument
233 tmp_off = ((khz * i) / stock_freq) & 0xff; in gx_validate_speed()
236 /* if this relation is closer to khz, use this. If it's equal, in gx_validate_speed()
238 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { in gx_validate_speed()
251 * set cpu speed in khz.
254 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) in gx_set_cpuspeed() argument
263 new_khz = gx_validate_speed(khz, &gx_params->on_duration, in gx_set_cpuspeed()
272 /* if new khz == 100% of CPU speed, it is special case */ in gx_set_cpuspeed()
279 /* typical 50 to 100ms */ in gx_set_cpuspeed()
280 gx_write_byte(PCI_VIDTC, 100); in gx_set_cpuspeed()
304 pr_debug("suspend modulation disabled: cpu runs 100%% speed.\n"); in gx_set_cpuspeed()
321 pr_debug("suspend modulation w/ clock speed: %d kHz.\n", freqs.new); in gx_set_cpuspeed()
331 * This function checks if a given frequency range in kHz is valid