Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
57e56bba
Commit
57e56bba
authored
9 years ago
by
achingupta
Browse files
Options
Download
Plain Diff
Merge pull request #301 from soby-mathew/sm/cpu_on_pend_state_fix
PSCI: Set ON_PENDING state early during CPU_ON
parents
aaa48a86
42cae5a1
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
v1.3
v1.3_rc2
v1.3_rc1
v1.3-rc0
v1.2
v1.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/std_svc/psci/psci_afflvl_on.c
+16
-14
services/std_svc/psci/psci_afflvl_on.c
with
16 additions
and
14 deletions
+16
-14
services/std_svc/psci/psci_afflvl_on.c
View file @
57e56bba
...
...
@@ -257,31 +257,33 @@ int psci_afflvl_on(unsigned long target_cpu,
if
(
psci_spd_pm
&&
psci_spd_pm
->
svc_on
)
psci_spd_pm
->
svc_on
(
target_cpu
);
/* Perform generic, architecture and platform specific handling. */
rc
=
psci_call_on_handlers
(
target_cpu_nodes
,
start_afflvl
,
end_afflvl
,
target_cpu
);
assert
(
rc
==
PSCI_E_SUCCESS
||
rc
==
PSCI_E_INTERN_FAIL
);
/*
* This function updates the state of each affinity instance
* corresponding to the mpidr in the range of affinity levels
* specified.
*/
if
(
rc
==
PSCI_E_SUCCESS
)
{
psci_do_afflvl_state_mgmt
(
start_afflvl
,
end_afflvl
,
target_cpu_nodes
,
PSCI_STATE_ON_PENDING
);
/*
* Store the re-entry information for the non-secure world.
*/
cm_init_context
(
target_cpu
,
ep
);
}
/*
Perform generic, architecture and platform specific handling. */
rc
=
psci_call_on_handlers
(
target_cpu_nodes
,
start_afflvl
,
end_afflvl
,
target_cpu
);
assert
(
rc
==
PSCI_E_SUCCESS
||
rc
==
PSCI_E_INTERN_FAIL
);
if
(
rc
==
PSCI_E_SUCCESS
)
/* Store the re-entry information for the non-secure world. */
cm_init_context
(
target_cpu
,
ep
);
else
/* Restore the state on error. */
psci_do_afflvl_state_mgmt
(
start_afflvl
,
end_afflvl
,
target_cpu_nodes
,
PSCI_STATE_OFF
);
exit:
/*
* This loop releases the lock corresponding to each affinity level
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help