diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-08-01 12:36:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 12:36:42 +0100 |
commit | 3e0cba5283c95cc07546408ac55542b00f4cd760 (patch) | |
tree | 014b836d9c21123f4720eaa38ecd54cbad5e1606 /lib/psci/psci_suspend.c | |
parent | 5e2cbb361e28968d26bbb0c3efd541ff543785cc (diff) | |
parent | cb95a19a61cb7a9ad30d7c5b4b9a6c8dbd6840a1 (diff) |
Merge pull request #1021 from vwadekar/psci-early-suspend-handler
lib: psci: early suspend handler for platforms
Diffstat (limited to 'lib/psci/psci_suspend.c')
-rw-r--r-- | lib/psci/psci_suspend.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/psci/psci_suspend.c b/lib/psci/psci_suspend.c index 0d1589ee..40ecdeea 100644 --- a/lib/psci/psci_suspend.c +++ b/lib/psci/psci_suspend.c @@ -80,6 +80,17 @@ static void psci_suspend_to_pwrdown_start(unsigned int end_pwrlvl, if (psci_spd_pm && psci_spd_pm->svc_suspend) psci_spd_pm->svc_suspend(max_off_lvl); +#if !HW_ASSISTED_COHERENCY + /* + * Plat. management: Allow the platform to perform any early + * actions required to power down the CPU. This might be useful for + * HW_ASSISTED_COHERENCY = 0 platforms that can safely perform these + * actions with data caches enabled. + */ + if (psci_plat_pm_ops->pwr_domain_suspend_pwrdown_early) + psci_plat_pm_ops->pwr_domain_suspend_pwrdown_early(state_info); +#endif + /* * Store the re-entry information for the non-secure world. */ |