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: v2.6.28-rc1~26^2~21^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=addbad46ed0906cd584784423b9d0babc7476446;p=linux-2.6-omap-h63xx.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 cf5b1b7b684..81b40ed5379 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();