/* show_available_freqs - show available frequencies for the specified CPU  */
static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf)
/* show_available_freqs - show available frequencies for the specified CPU  */
static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf)
{
	unsigned int i = 0;
	unsigned int cpu = policy->cpu;
	ssize_t count = 0;
	struct cpufreq_frequency_table *table;
	if (!per_cpu(cpufreq_show_table, cpu))
		return -ENODEV;
	table = per_cpu(cpufreq_show_table, cpu);
	for (i = 0; (table[i].frequency != CPUFREQ_TABLE_END); i++) {
		if (table[i].frequency == CPUFREQ_ENTRY_INVALID)
			continue;
		count += sprintf(&buf[count], "%d ", table[i].frequency);
	}
	count += sprintf(&buf[count], "\n");
	return count;
}