summaryrefslogtreecommitdiff
path: root/chip/mec1322/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/system.c')
-rw-r--r--chip/mec1322/system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/mec1322/system.c b/chip/mec1322/system.c
index f7fa770388..c199332f57 100644
--- a/chip/mec1322/system.c
+++ b/chip/mec1322/system.c
@@ -190,9 +190,6 @@ void system_hibernate(uint32_t seconds, uint32_t microseconds)
{
int i;
- if (board_hibernate)
- board_hibernate();
-
#ifdef CONFIG_HOSTCMD_PD
/* Inform the PD MCU that we are going to hibernate. */
host_command_pd_request_hibernate();
@@ -202,6 +199,9 @@ void system_hibernate(uint32_t seconds, uint32_t microseconds)
cflush();
+ if (board_hibernate)
+ board_hibernate();
+
/* Disable interrupts */
interrupt_disable();
for (i = 0; i <= 92; ++i) {