Skip to content

Commit

Permalink
Merge branch 'acpi-hotplug'
Browse files Browse the repository at this point in the history
* acpi-hotplug:
  ACPI / processor: Drop unused variable from processor_perflib.c
  ACPI / processor: Remove unused macros in processor_driver.c
  • Loading branch information
Rafael J. Wysocki committed Jun 29, 2013
2 parents e52cff8 + 09d5ca8 commit 996e256
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,10 @@

#define PREFIX "ACPI: "

#define ACPI_PROCESSOR_FILE_INFO "info"
#define ACPI_PROCESSOR_FILE_THROTTLING "throttling"
#define ACPI_PROCESSOR_FILE_LIMIT "limit"
#define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80
#define ACPI_PROCESSOR_NOTIFY_POWER 0x81
#define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82

#define ACPI_PROCESSOR_LIMIT_USER 0
#define ACPI_PROCESSOR_LIMIT_THERMAL 1

#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME("processor_driver");

Expand Down
4 changes: 1 addition & 3 deletions drivers/acpi/processor_perflib.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static int acpi_processor_get_psd(struct acpi_processor *pr)
int acpi_processor_preregister_performance(
struct acpi_processor_performance __percpu *performance)
{
int count, count_target;
int count_target;
int retval = 0;
unsigned int i, j;
cpumask_var_t covered_cpus;
Expand Down Expand Up @@ -711,7 +711,6 @@ int acpi_processor_preregister_performance(

/* Validate the Domain info */
count_target = pdomain->num_processors;
count = 1;
if (pdomain->coord_type == DOMAIN_COORD_TYPE_SW_ALL)
pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL;
else if (pdomain->coord_type == DOMAIN_COORD_TYPE_HW_ALL)
Expand Down Expand Up @@ -745,7 +744,6 @@ int acpi_processor_preregister_performance(

cpumask_set_cpu(j, covered_cpus);
cpumask_set_cpu(j, pr->performance->shared_cpu_map);
count++;
}

for_each_possible_cpu(j) {
Expand Down

0 comments on commit 996e256

Please sign in to comment.