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

Commit addbad46 authored by Venkatesh Pallipadi's avatar Venkatesh Pallipadi Committed by Len Brown
Browse files

cpuidle: update the last_state acpi cpuidle reflecting actual state entered



reflect the actual state entered in dev->last_state, when actaul state entered
is different from intended one.

Signed-off-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 887e301a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1587,6 +1587,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,


	if (acpi_idle_bm_check()) {
	if (acpi_idle_bm_check()) {
		if (dev->safe_state) {
		if (dev->safe_state) {
			dev->last_state = dev->safe_state;
			return dev->safe_state->enter(dev, dev->safe_state);
			return dev->safe_state->enter(dev, dev->safe_state);
		} else {
		} else {
			local_irq_disable();
			local_irq_disable();