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

/linux-4.4.14/drivers/cpufreq/
H A Dgx-suspmod.c45 * off_duration + on_duration <= MAX_DURATION
46 * on_duration = off_duration * (stock_freq - freq) / freq
49 * on_duration = DURATION - off_duration
116 u8 on_duration; member in struct:gxfreq_params
212 / (gx_params->on_duration + gx_params->off_duration); gx_get_cpuspeed()
221 static unsigned int gx_validate_speed(unsigned int khz, u8 *on_duration, gx_validate_speed() argument
230 *on_duration = 0; gx_validate_speed()
239 *on_duration = tmp_on; gx_validate_speed()
263 new_khz = gx_validate_speed(khz, &gx_params->on_duration, gx_set_cpuspeed()
303 gx_params->on_duration = 0; gx_set_cpuspeed()
308 gx_write_byte(PCI_MODON, gx_params->on_duration); gx_set_cpuspeed()
320 gx_params->on_duration * 32, gx_params->off_duration * 32); gx_set_cpuspeed()
476 pci_read_config_byte(params->cs55x0, PCI_MODON, &(params->on_duration)); cpufreq_gx_init()

Completed in 224 milliseconds