From: Venkatesh Pallipadi Date: Mon, 29 Sep 2008 22:24:28 +0000 (-0700) Subject: cpuidle: update the last_state acpi cpuidle reflecting actual state entered X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=addbad46ed0906cd584784423b9d0babc7476446;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Venkatesh Pallipadi Signed-off-by: Len Brown --- diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index cf5b1b7b684f..81b40ed5379e 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -1587,6 +1587,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, if (acpi_idle_bm_check()) { if (dev->safe_state) { + dev->last_state = dev->safe_state; return dev->safe_state->enter(dev, dev->safe_state); } else { local_irq_disable();