/* show_scaling_driver - show the current cpufreq HW/BIOS limitation  */
static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf)
/* show_scaling_driver - show the current cpufreq HW/BIOS limitation  */
static ssize_t show_bios_limit(struct cpufreq_policy *policy, char *buf)
{
	unsigned int limit;
	int ret;
	if (cpufreq_driver->bios_limit) {
		ret = cpufreq_driver->bios_limit(policy->cpu, &limit);
		if (!ret)
			return sprintf(buf, "%u\n", limit);
	}
	return sprintf(buf, "%u\n", policy->cpuinfo.max_freq);
}