From 1862d6203cb21d1846388e8d7530612a9b98786e Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Mon, 10 Jul 2017 16:02:05 -0700 Subject: lib: psci: early suspend handler for platforms This patch adds an early suspend handler, that executes with SMP and data cache enabled. This handler allows platforms to perform any early actions during the CPU suspend entry sequence. This handler is optional and platforms can choose to implement it depending on their needs. The `pwr_domain_suspend` handler still exists and platforms can keep on using it without any side effects. Signed-off-by: Varun Wadekar --- include/lib/psci/psci.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/lib/psci/psci.h') diff --git a/include/lib/psci/psci.h b/include/lib/psci/psci.h index fee6a24f..0ed39c9a 100644 --- a/include/lib/psci/psci.h +++ b/include/lib/psci/psci.h @@ -267,6 +267,8 @@ typedef struct plat_psci_ops { void (*cpu_standby)(plat_local_state_t cpu_state); int (*pwr_domain_on)(u_register_t mpidr); void (*pwr_domain_off)(const psci_power_state_t *target_state); + void (*pwr_domain_suspend_pwrdown_early)( + const psci_power_state_t *target_state); void (*pwr_domain_suspend)(const psci_power_state_t *target_state); void (*pwr_domain_on_finish)(const psci_power_state_t *target_state); void (*pwr_domain_suspend_finish)( -- cgit v1.2.3