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-Tag: Ubuntu-5.2.0-15.16~32394^2~21^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=addbad46ed0906cd584784423b9d0babc7476446;p=mirror_ubuntu-eoan-kernel.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();