summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/chipset_x86_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/chipset_x86_common.c b/common/chipset_x86_common.c
index 63fecfdda9..2704dd143c 100644
--- a/common/chipset_x86_common.c
+++ b/common/chipset_x86_common.c
@@ -122,7 +122,7 @@ int x86_wait_signals(uint32_t want)
void x86_set_state(enum x86_state new_state)
{
/* Record the time we go into G3 */
- if (state == X86_G3)
+ if (new_state == X86_G3)
last_shutdown_time = get_time().val;
state = new_state;