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
424f68dd
Unverified
Commit
424f68dd
authored
6 years ago
by
Soby Mathew
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1625 from ldts/psci
psci: platform control of SYSTEM_SUSPEND entry
parents
e22a4ae0
a4065abd
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
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/psci/psci_main.c
+7
-1
lib/psci/psci_main.c
with
7 additions
and
1 deletion
+7
-1
lib/psci/psci_main.c
View file @
424f68dd
...
...
@@ -167,8 +167,14 @@ int psci_system_suspend(uintptr_t entrypoint, u_register_t context_id)
/* Query the psci_power_state for system suspend */
psci_query_sys_suspend_pwrstate
(
&
state_info
);
/*
* Check if platform allows suspend to Highest power level
* (System level)
*/
if
(
psci_find_target_suspend_lvl
(
&
state_info
)
<
PLAT_MAX_PWR_LVL
)
return
PSCI_E_DENIED
;
/* Ensure that the psci_power_state makes sense */
assert
(
psci_find_target_suspend_lvl
(
&
state_info
)
==
PLAT_MAX_PWR_LVL
);
assert
(
psci_validate_suspend_req
(
&
state_info
,
PSTATE_TYPE_POWERDOWN
)
==
PSCI_E_SUCCESS
);
assert
(
is_local_state_off
(
...
...
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