ACPI / CPPC: Add prefix cppc to cpudata structure name
Since struct cpudata is defined in a header file, add prefix cppc_ to make it not a generic name. Otherwise it causes compile issue in locally define structure with the same name. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
a6cbcdd5ab
commit
41dd640389
@@ -30,13 +30,13 @@
|
||||
* performance capabilities, desired performance level
|
||||
* requested etc.
|
||||
*/
|
||||
static struct cpudata **all_cpu_data;
|
||||
static struct cppc_cpudata **all_cpu_data;
|
||||
|
||||
static int cppc_cpufreq_set_target(struct cpufreq_policy *policy,
|
||||
unsigned int target_freq,
|
||||
unsigned int relation)
|
||||
{
|
||||
struct cpudata *cpu;
|
||||
struct cppc_cpudata *cpu;
|
||||
struct cpufreq_freqs freqs;
|
||||
int ret = 0;
|
||||
|
||||
@@ -66,7 +66,7 @@ static int cppc_verify_policy(struct cpufreq_policy *policy)
|
||||
static void cppc_cpufreq_stop_cpu(struct cpufreq_policy *policy)
|
||||
{
|
||||
int cpu_num = policy->cpu;
|
||||
struct cpudata *cpu = all_cpu_data[cpu_num];
|
||||
struct cppc_cpudata *cpu = all_cpu_data[cpu_num];
|
||||
int ret;
|
||||
|
||||
cpu->perf_ctrls.desired_perf = cpu->perf_caps.lowest_perf;
|
||||
@@ -79,7 +79,7 @@ static void cppc_cpufreq_stop_cpu(struct cpufreq_policy *policy)
|
||||
|
||||
static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy)
|
||||
{
|
||||
struct cpudata *cpu;
|
||||
struct cppc_cpudata *cpu;
|
||||
unsigned int cpu_num = policy->cpu;
|
||||
int ret = 0;
|
||||
|
||||
@@ -135,7 +135,7 @@ static struct cpufreq_driver cppc_cpufreq_driver = {
|
||||
static int __init cppc_cpufreq_init(void)
|
||||
{
|
||||
int i, ret = 0;
|
||||
struct cpudata *cpu;
|
||||
struct cppc_cpudata *cpu;
|
||||
|
||||
if (acpi_disabled)
|
||||
return -ENODEV;
|
||||
@@ -145,7 +145,7 @@ static int __init cppc_cpufreq_init(void)
|
||||
return -ENOMEM;
|
||||
|
||||
for_each_possible_cpu(i) {
|
||||
all_cpu_data[i] = kzalloc(sizeof(struct cpudata), GFP_KERNEL);
|
||||
all_cpu_data[i] = kzalloc(sizeof(struct cppc_cpudata), GFP_KERNEL);
|
||||
if (!all_cpu_data[i])
|
||||
goto out;
|
||||
|
||||
@@ -176,7 +176,7 @@ out:
|
||||
|
||||
static void __exit cppc_cpufreq_exit(void)
|
||||
{
|
||||
struct cpudata *cpu;
|
||||
struct cppc_cpudata *cpu;
|
||||
int i;
|
||||
|
||||
cpufreq_unregister_driver(&cppc_cpufreq_driver);
|
||||
|
Reference in New Issue
Block a user