Commit 216e58a3 authored by Roberto Vargas's avatar Roberto Vargas
Browse files

Reduce time lock in psci_do_cpu_off



psci_set_power_off_state only initializes a local variable, so there
isn't any reason why it should be done while the lock is held.

Change-Id: I1c62f4cd5d860d102532e5a5350152180d41d127
Signed-off-by: default avatarRoberto Vargas <roberto.vargas@arm.com>
parent 942ee0d8
...@@ -49,6 +49,9 @@ int psci_do_cpu_off(unsigned int end_pwrlvl) ...@@ -49,6 +49,9 @@ int psci_do_cpu_off(unsigned int end_pwrlvl)
*/ */
assert(psci_plat_pm_ops->pwr_domain_off); 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 * This function acquires the lock corresponding to each power
* level so that by the time all locks are taken, the system topology * 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) ...@@ -68,9 +71,6 @@ int psci_do_cpu_off(unsigned int end_pwrlvl)
goto exit; 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 * This function is passed the requested state info and
* it returns the negotiated state info for each power level upto * it returns the negotiated state info for each power level upto
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment