diff mbox series

mini horizontal-offset fix

Message ID 1523430267-29032-1-git-send-email-john.stultz@linaro.org
State New
Headers show
Series mini horizontal-offset fix | expand

Commit Message

John Stultz April 11, 2018, 7:04 a.m. UTC
I've been trying to chase down exactly what's going wrong,
and so far this is the simplest change to make things
work on HiKey.

---
 lib/psci/psci_suspend.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.7.4
diff mbox series

Patch

diff --git a/lib/psci/psci_suspend.c b/lib/psci/psci_suspend.c
index 40ecdee..726b548 100644
--- a/lib/psci/psci_suspend.c
+++ b/lib/psci/psci_suspend.c
@@ -147,6 +147,8 @@  void psci_cpu_suspend_start(entry_point_info_t *ep,
 	int skip_wfi = 0;
 	unsigned int idx = plat_my_core_pos();
 
+	if (is_power_down_state)
+		return;
 	/*
 	 * This function must only be called on platforms where the
 	 * CPU_SUSPEND platform hooks have been implemented.