Commit 04068da8 authored by Colin Ian King's avatar Colin Ian King Committed by Rafael J. Wysocki

ACPI: processor: throttling: remove variable count

Variable count is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2437513a
...@@ -50,7 +50,7 @@ static int __acpi_processor_set_throttling(struct acpi_processor *pr, ...@@ -50,7 +50,7 @@ static int __acpi_processor_set_throttling(struct acpi_processor *pr,
static int acpi_processor_update_tsd_coord(void) static int acpi_processor_update_tsd_coord(void)
{ {
int count, count_target; int count_target;
int retval = 0; int retval = 0;
unsigned int i, j; unsigned int i, j;
cpumask_var_t covered_cpus; cpumask_var_t covered_cpus;
...@@ -107,7 +107,6 @@ static int acpi_processor_update_tsd_coord(void) ...@@ -107,7 +107,6 @@ static int acpi_processor_update_tsd_coord(void)
/* Validate the Domain info */ /* Validate the Domain info */
count_target = pdomain->num_processors; count_target = pdomain->num_processors;
count = 1;
for_each_possible_cpu(j) { for_each_possible_cpu(j) {
if (i == j) if (i == j)
...@@ -140,7 +139,6 @@ static int acpi_processor_update_tsd_coord(void) ...@@ -140,7 +139,6 @@ static int acpi_processor_update_tsd_coord(void)
cpumask_set_cpu(j, covered_cpus); cpumask_set_cpu(j, covered_cpus);
cpumask_set_cpu(j, pthrottling->shared_cpu_map); cpumask_set_cpu(j, pthrottling->shared_cpu_map);
count++;
} }
for_each_possible_cpu(j) { for_each_possible_cpu(j) {
if (i == j) if (i == j)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment