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
093e53f6
Commit
093e53f6
authored
May 16, 2017
by
danh-arm
Committed by
GitHub
May 16, 2017
Browse files
Merge pull request #937 from rockchip-linux/rk3328_assert
rockchip: rk3328: Add assert check in pmu.c
parents
f0019fcc
6bf14e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/rockchip/rk3328/drivers/pmu/pmu.c
View file @
093e53f6
...
...
@@ -144,6 +144,7 @@ int rockchip_soc_cores_pwr_dm_on(unsigned long mpidr, uint64_t entrypoint)
{
uint32_t
cpu_id
=
plat_core_pos_by_mpidr
(
mpidr
);
assert
(
cpu_id
<
PLATFORM_CORE_COUNT
);
assert
(
cpuson_flags
[
cpu_id
]
==
0
);
cpuson_flags
[
cpu_id
]
=
PMU_CPU_HOTPLUG
;
cpuson_entry_point
[
cpu_id
]
=
entrypoint
;
...
...
@@ -167,6 +168,7 @@ int rockchip_soc_cores_pwr_dm_suspend(void)
{
uint32_t
cpu_id
=
plat_my_core_pos
();
assert
(
cpu_id
<
PLATFORM_CORE_COUNT
);
assert
(
cpuson_flags
[
cpu_id
]
==
0
);
cpuson_flags
[
cpu_id
]
=
PMU_CPU_AUTO_PWRDN
;
cpuson_entry_point
[
cpu_id
]
=
(
uintptr_t
)
plat_get_sec_entrypoint
();
...
...
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