Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53b70951 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Rafael J. Wysocki
Browse files

cpuidle / ACPI: remove usage from acpi_processor_cx structure



Remove the usage field as it is not used.

Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 64d45f07
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -760,7 +760,6 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev,
	dev->last_residency = (int)idle_time;
	dev->last_residency = (int)idle_time;


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


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


	cx->usage++;

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


	cx->usage++;

	lapic_timer_state_broadcast(pr, cx, 0);
	lapic_timer_state_broadcast(pr, cx, 0);
	cx->time += idle_time;
	cx->time += idle_time;
	return index;
	return index;
+0 −1
Original line number Original line Diff line number Diff line
@@ -60,7 +60,6 @@ struct acpi_processor_cx {
	u8 index;
	u8 index;
	u32 latency;
	u32 latency;
	u32 power;
	u32 power;
	u32 usage;
	u64 time;
	u64 time;
	u8 bm_sts_skip;
	u8 bm_sts_skip;
	char desc[ACPI_CX_DESC_LEN];
	char desc[ACPI_CX_DESC_LEN];