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
0b747723
Unverified
Commit
0b747723
authored
7 years ago
by
Dimitris Papastamos
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1336 from jonathanwright-ARM/jw/MISRA-init-arrays
psci: initialize array fully to comply with MISRA
parents
b7229e49
2271cb05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/psci/psci_stat.c
+6
-1
lib/psci/psci_stat.c
with
6 additions
and
1 deletion
+6
-1
lib/psci/psci_stat.c
View file @
0b747723
...
...
@@ -24,7 +24,8 @@ typedef struct psci_stat {
* Following is used to keep track of the last cpu
* that goes to power down in non cpu power domains.
*/
static
int
last_cpu_in_non_cpu_pd
[
PSCI_NUM_NON_CPU_PWR_DOMAINS
]
=
{
-
1
};
static
int
last_cpu_in_non_cpu_pd
[
PSCI_NUM_NON_CPU_PWR_DOMAINS
]
=
{
[
0
...
PSCI_NUM_NON_CPU_PWR_DOMAINS
-
1
]
=
-
1
};
/*
* Following are used to store PSCI STAT values for
...
...
@@ -129,6 +130,10 @@ void psci_stats_update_pwr_up(unsigned int end_pwrlvl,
* prior to this CPU powering on.
*/
parent_idx
=
psci_cpu_pd_nodes
[
cpu_idx
].
parent_node
;
/* Return early if this is the first power up. */
if
(
last_cpu_in_non_cpu_pd
[
parent_idx
]
==
-
1
)
return
;
for
(
lvl
=
PSCI_CPU_PWR_LVL
+
1
;
lvl
<=
end_pwrlvl
;
lvl
++
)
{
local_state
=
state_info
->
pwr_domain_state
[
lvl
];
if
(
is_local_state_run
(
local_state
))
{
...
...
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