diff options
author | Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> | 2009-01-27 17:38:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-06 14:00:40 -0800 |
commit | fc2e4009300088813c3be2de80b01ddc2399999e (patch) | |
tree | 327d6dd393a15b6c5c9eac4711dd91136ddb944d | |
parent | dcc66ea99edf129459fad800d09d65deecaf8e7b (diff) |
cpuidle: update the last_state acpi cpuidle reflecting actual state entered
commit addbad46ed0906cd584784423b9d0babc7476446
reflect the actual state entered in dev->last_state, when actaul state entered
is different from intended one.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/acpi/processor_idle.c | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |