diff options
author | Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> | 2008-09-29 15:24:28 -0700 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-16 18:00:04 -0400 |
commit | addbad46ed0906cd584784423b9d0babc7476446 (patch) | |
tree | f6c8c67d84c66d81ef272c6135647e175a473c84 /drivers/acpi/processor_idle.c | |
parent | 887e301aa1105326f1412a98749024263b1031c7 (diff) | |
download | linux-addbad46ed0906cd584784423b9d0babc7476446.tar.gz linux-addbad46ed0906cd584784423b9d0babc7476446.tar.bz2 linux-addbad46ed0906cd584784423b9d0babc7476446.zip |
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 <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-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 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(); |