/* Finds out at which efficient frequency the Cyrix MediaGX/NatSemi Geode CPU runs.  */
static unsigned int gx_get_cpuspeed(unsigned int cpu)
/* Finds out at which efficient frequency the Cyrix MediaGX/NatSemi Geode CPU runs.  */
static unsigned int gx_get_cpuspeed(unsigned int cpu)
{
	if ((gx_params->pci_suscfg & SUSMOD) == 0)
		return stock_freq;
	return (stock_freq * gx_params->off_duration)
		/ (gx_params->on_duration + gx_params->off_duration);
}