projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
887e301
)
cpuidle: update the last_state acpi cpuidle reflecting actual state entered
author
Venkatesh Pallipadi
<venkatesh.pallipadi@intel.com>
Mon, 29 Sep 2008 22:24:28 +0000
(15:24 -0700)
committer
Len Brown
<len.brown@intel.com>
Thu, 16 Oct 2008 22:00:04 +0000
(18:00 -0400)
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>
drivers/acpi/processor_idle.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/processor_idle.c
b/drivers/acpi/processor_idle.c
index cf5b1b7b684f1de0473796d26ed8e2edc2213eef..81b40ed5379e76edcd02553aaa4881f1107a1422 100644
(file)
--- 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();