diff options
Diffstat (limited to 'drivers/acpi/processor_perflib.c')
-rw-r--r-- | drivers/acpi/processor_perflib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index e854582f29a6..1e9732d809bf 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c | |||
@@ -639,7 +639,7 @@ end: | |||
639 | int acpi_processor_preregister_performance( | 639 | int acpi_processor_preregister_performance( |
640 | struct acpi_processor_performance __percpu *performance) | 640 | struct acpi_processor_performance __percpu *performance) |
641 | { | 641 | { |
642 | int count, count_target; | 642 | int count_target; |
643 | int retval = 0; | 643 | int retval = 0; |
644 | unsigned int i, j; | 644 | unsigned int i, j; |
645 | cpumask_var_t covered_cpus; | 645 | cpumask_var_t covered_cpus; |
@@ -711,7 +711,6 @@ int acpi_processor_preregister_performance( | |||
711 | 711 | ||
712 | /* Validate the Domain info */ | 712 | /* Validate the Domain info */ |
713 | count_target = pdomain->num_processors; | 713 | count_target = pdomain->num_processors; |
714 | count = 1; | ||
715 | if (pdomain->coord_type == DOMAIN_COORD_TYPE_SW_ALL) | 714 | if (pdomain->coord_type == DOMAIN_COORD_TYPE_SW_ALL) |
716 | pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; | 715 | pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; |
717 | else if (pdomain->coord_type == DOMAIN_COORD_TYPE_HW_ALL) | 716 | else if (pdomain->coord_type == DOMAIN_COORD_TYPE_HW_ALL) |
@@ -745,7 +744,6 @@ int acpi_processor_preregister_performance( | |||
745 | 744 | ||
746 | cpumask_set_cpu(j, covered_cpus); | 745 | cpumask_set_cpu(j, covered_cpus); |
747 | cpumask_set_cpu(j, pr->performance->shared_cpu_map); | 746 | cpumask_set_cpu(j, pr->performance->shared_cpu_map); |
748 | count++; | ||
749 | } | 747 | } |
750 | 748 | ||
751 | for_each_possible_cpu(j) { | 749 | for_each_possible_cpu(j) { |