aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-29 09:03:26 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-29 09:03:26 -0400
commit996e2569dab534089b095da86e5d01d9d954279e (patch)
treebfa80ee680f90b7700ea8bd96b213b1b6f331444 /drivers/acpi
parente52cff8bdd4a30c40a7f65c7ea8f1f425f8a15eb (diff)
parent09d5ca804e796a20dbc50be0971b9e89e692c256 (diff)
Merge branch 'acpi-hotplug'
* acpi-hotplug: ACPI / processor: Drop unused variable from processor_perflib.c ACPI / processor: Remove unused macros in processor_driver.c
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/processor_driver.c6
-rw-r--r--drivers/acpi/processor_perflib.c4
2 files changed, 1 insertions, 9 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index d93963f1e8f4..823be116619e 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -43,16 +43,10 @@
43 43
44#define PREFIX "ACPI: " 44#define PREFIX "ACPI: "
45 45
46#define ACPI_PROCESSOR_FILE_INFO "info"
47#define ACPI_PROCESSOR_FILE_THROTTLING "throttling"
48#define ACPI_PROCESSOR_FILE_LIMIT "limit"
49#define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80 46#define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80
50#define ACPI_PROCESSOR_NOTIFY_POWER 0x81 47#define ACPI_PROCESSOR_NOTIFY_POWER 0x81
51#define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82 48#define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82
52 49
53#define ACPI_PROCESSOR_LIMIT_USER 0
54#define ACPI_PROCESSOR_LIMIT_THERMAL 1
55
56#define _COMPONENT ACPI_PROCESSOR_COMPONENT 50#define _COMPONENT ACPI_PROCESSOR_COMPONENT
57ACPI_MODULE_NAME("processor_driver"); 51ACPI_MODULE_NAME("processor_driver");
58 52
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:
639int acpi_processor_preregister_performance( 639int 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) {