Skip to content
GitLab
Menu
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
2013523c
Unverified
Commit
2013523c
authored
Sep 07, 2018
by
Dimitris Papastamos
Committed by
GitHub
Sep 07, 2018
Browse files
Merge pull request #1564 from jeenu-arm/sdei-suspend
SDEI: Mask events after CPU wakeup
parents
e976e1fd
f933b44b
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/std_svc/sdei/sdei_main.c
View file @
2013523c
...
...
@@ -81,6 +81,17 @@ static void *sdei_cpu_on_init(const void *arg)
return
NULL
;
}
/* CPU initialisation after wakeup from suspend */
static
void
*
sdei_cpu_wakeup_init
(
const
void
*
arg
)
{
SDEI_LOG
(
"Events masked on %lx
\n
"
,
read_mpidr_el1
());
/* All PEs wake up with SDEI events masked */
sdei_pe_mask
();
return
0
;
}
/* Initialise an SDEI class */
static
void
sdei_class_init
(
sdei_class_t
class
)
{
...
...
@@ -1075,3 +1086,6 @@ uint64_t sdei_smc_handler(uint32_t smc_fid,
/* Subscribe to PSCI CPU on to initialize per-CPU SDEI configuration */
SUBSCRIBE_TO_EVENT
(
psci_cpu_on_finish
,
sdei_cpu_on_init
);
/* Subscribe to PSCI CPU suspend finisher for per-CPU configuration */
SUBSCRIBE_TO_EVENT
(
psci_suspend_pwrdown_finish
,
sdei_cpu_wakeup_init
);
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