linux/drivers/cpufreq/freq_table.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * linux/drivers/cpufreq/freq_table.c
 *
 * Copyright (C) 2002 - 2003 Dominik Brodowski
 */

#define pr_fmt(fmt)

#include <linux/cpufreq.h>
#include <linux/module.h>

/*********************************************************************
 *                     FREQUENCY TABLE HELPERS                       *
 *********************************************************************/

bool policy_has_boost_freq(struct cpufreq_policy *policy)
{}
EXPORT_SYMBOL_GPL();

int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
				    struct cpufreq_frequency_table *table)
{}

int cpufreq_frequency_table_verify(struct cpufreq_policy_data *policy,
				   struct cpufreq_frequency_table *table)
{}
EXPORT_SYMBOL_GPL();

/*
 * Generic routine to verify policy & frequency table, requires driver to set
 * policy->freq_table prior to it.
 */
int cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy)
{}
EXPORT_SYMBOL_GPL();

int cpufreq_table_index_unsorted(struct cpufreq_policy *policy,
				 unsigned int target_freq,
				 unsigned int relation)
{}
EXPORT_SYMBOL_GPL();

int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy,
		unsigned int freq)
{}
EXPORT_SYMBOL_GPL();

/*
 * show_available_freqs - show available frequencies for the specified CPU
 */
static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf,
				    bool show_boost)
{}

#define cpufreq_attr_available_freq(_name)

/*
 * scaling_available_frequencies_show - show available normal frequencies for
 * the specified CPU
 */
static ssize_t scaling_available_frequencies_show(struct cpufreq_policy *policy,
						  char *buf)
{}
cpufreq_attr_available_freq();
EXPORT_SYMBOL_GPL();

/*
 * scaling_boost_frequencies_show - show available boost frequencies for
 * the specified CPU
 */
static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy,
					      char *buf)
{}
cpufreq_attr_available_freq();
EXPORT_SYMBOL_GPL();

struct freq_attr *cpufreq_generic_attr[] =;
EXPORT_SYMBOL_GPL();

static int set_freq_table_sorted(struct cpufreq_policy *policy)
{}

int cpufreq_table_validate_and_sort(struct cpufreq_policy *policy)
{}

MODULE_AUTHOR();
MODULE_DESCRIPTION();