diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-09-11 18:19:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-11 18:19:03 +0100 |
commit | 800a55ea7ef69a02433dcb11996fef7aa5573629 (patch) | |
tree | 3ba562f2d6e197dc4385c6ca048572c11c7d9fb4 | |
parent | 8121bc0f9f9620c6defae2e567b91b349960cfa6 (diff) | |
parent | 216e58a31288bd25802d280c81a0e8d01b3b11d1 (diff) |
Merge pull request #1087 from robertovargas-arm/psci_do_cpu_off
Reduce time lock in psci_do_cpu_off
-rw-r--r-- | lib/psci/psci_off.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/psci/psci_off.c b/lib/psci/psci_off.c index e7fb6532..231deea2 100644 --- a/lib/psci/psci_off.c +++ b/lib/psci/psci_off.c @@ -49,6 +49,9 @@ int psci_do_cpu_off(unsigned int end_pwrlvl) */ assert(psci_plat_pm_ops->pwr_domain_off); + /* Construct the psci_power_state for CPU_OFF */ + psci_set_power_off_state(&state_info); + /* * This function acquires the lock corresponding to each power * level so that by the time all locks are taken, the system topology @@ -68,9 +71,6 @@ int psci_do_cpu_off(unsigned int end_pwrlvl) goto exit; } - /* Construct the psci_power_state for CPU_OFF */ - psci_set_power_off_state(&state_info); - /* * This function is passed the requested state info and * it returns the negotiated state info for each power level upto |