Skip to content

Commit

Permalink
cpuidle / ACPI: remove usage from acpi_processor_cx structure
Browse files Browse the repository at this point in the history
Remove the usage field as it is not used.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Daniel Lezcano authored and Rafael J. Wysocki committed Jul 17, 2012
1 parent 64d45f0 commit 53b7095
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev,
dev->last_residency = (int)idle_time;

local_irq_enable();
cx->usage++;
lapic_timer_state_broadcast(pr, cx, 0);

return index;
Expand Down Expand Up @@ -863,8 +862,6 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,
if (cx->entry_method != ACPI_CSTATE_FFH)
current_thread_info()->status |= TS_POLLING;

cx->usage++;

lapic_timer_state_broadcast(pr, cx, 0);
cx->time += idle_time;
return index;
Expand Down Expand Up @@ -984,8 +981,6 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
if (cx->entry_method != ACPI_CSTATE_FFH)
current_thread_info()->status |= TS_POLLING;

cx->usage++;

lapic_timer_state_broadcast(pr, cx, 0);
cx->time += idle_time;
return index;
Expand Down
1 change: 0 additions & 1 deletion include/acpi/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ struct acpi_processor_cx {
u8 index;
u32 latency;
u32 power;
u32 usage;
u64 time;
u8 bm_sts_skip;
char desc[ACPI_CX_DESC_LEN];
Expand Down

0 comments on commit 53b7095

Please sign in to comment.