diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 7fc58af748b4..a7ef465c83b9 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -65,7 +65,7 @@ struct cpu_dbs_info_s { | |||
65 | int cpu; | 65 | int cpu; |
66 | unsigned int enable:1; | 66 | unsigned int enable:1; |
67 | }; | 67 | }; |
68 | static DEFINE_PER_CPU(struct cpu_dbs_info_s, cpu_dbs_info); | 68 | static DEFINE_PER_CPU(struct cpu_dbs_info_s, cs_cpu_dbs_info); |
69 | 69 | ||
70 | static unsigned int dbs_enable; /* number of CPUs using this policy */ | 70 | static unsigned int dbs_enable; /* number of CPUs using this policy */ |
71 | 71 | ||
@@ -138,7 +138,7 @@ dbs_cpufreq_notifier(struct notifier_block *nb, unsigned long val, | |||
138 | void *data) | 138 | void *data) |
139 | { | 139 | { |
140 | struct cpufreq_freqs *freq = data; | 140 | struct cpufreq_freqs *freq = data; |
141 | struct cpu_dbs_info_s *this_dbs_info = &per_cpu(cpu_dbs_info, | 141 | struct cpu_dbs_info_s *this_dbs_info = &per_cpu(cs_cpu_dbs_info, |
142 | freq->cpu); | 142 | freq->cpu); |
143 | 143 | ||
144 | struct cpufreq_policy *policy; | 144 | struct cpufreq_policy *policy; |
@@ -298,7 +298,7 @@ static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy, | |||
298 | /* we need to re-evaluate prev_cpu_idle */ | 298 | /* we need to re-evaluate prev_cpu_idle */ |
299 | for_each_online_cpu(j) { | 299 | for_each_online_cpu(j) { |
300 | struct cpu_dbs_info_s *dbs_info; | 300 | struct cpu_dbs_info_s *dbs_info; |
301 | dbs_info = &per_cpu(cpu_dbs_info, j); | 301 | dbs_info = &per_cpu(cs_cpu_dbs_info, j); |
302 | dbs_info->prev_cpu_idle = get_cpu_idle_time(j, | 302 | dbs_info->prev_cpu_idle = get_cpu_idle_time(j, |
303 | &dbs_info->prev_cpu_wall); | 303 | &dbs_info->prev_cpu_wall); |
304 | if (dbs_tuners_ins.ignore_nice) | 304 | if (dbs_tuners_ins.ignore_nice) |
@@ -388,7 +388,7 @@ static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info) | |||
388 | cputime64_t cur_wall_time, cur_idle_time; | 388 | cputime64_t cur_wall_time, cur_idle_time; |
389 | unsigned int idle_time, wall_time; | 389 | unsigned int idle_time, wall_time; |
390 | 390 | ||
391 | j_dbs_info = &per_cpu(cpu_dbs_info, j); | 391 | j_dbs_info = &per_cpu(cs_cpu_dbs_info, j); |
392 | 392 | ||
393 | cur_idle_time = get_cpu_idle_time(j, &cur_wall_time); | 393 | cur_idle_time = get_cpu_idle_time(j, &cur_wall_time); |
394 | 394 | ||
@@ -528,7 +528,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, | |||
528 | unsigned int j; | 528 | unsigned int j; |
529 | int rc; | 529 | int rc; |
530 | 530 | ||
531 | this_dbs_info = &per_cpu(cpu_dbs_info, cpu); | 531 | this_dbs_info = &per_cpu(cs_cpu_dbs_info, cpu); |
532 | 532 | ||
533 | switch (event) { | 533 | switch (event) { |
534 | case CPUFREQ_GOV_START: | 534 | case CPUFREQ_GOV_START: |
@@ -548,7 +548,7 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy, | |||
548 | 548 | ||
549 | for_each_cpu(j, policy->cpus) { | 549 | for_each_cpu(j, policy->cpus) { |
550 | struct cpu_dbs_info_s *j_dbs_info; | 550 | struct cpu_dbs_info_s *j_dbs_info; |
551 | j_dbs_info = &per_cpu(cpu_dbs_info, j); | 551 | j_dbs_info = &per_cpu(cs_cpu_dbs_info, j); |
552 | j_dbs_info->cur_policy = policy; | 552 | j_dbs_info->cur_policy = policy; |
553 | 553 | ||
554 | j_dbs_info->prev_cpu_idle = get_cpu_idle_time(j, | 554 | j_dbs_info->prev_cpu_idle = get_cpu_idle_time(j, |