Skip to content
Snippets Groups Projects
Commit 17c5bda2 authored by Vitaly Andrianov's avatar Vitaly Andrianov Committed by Tom Rini
Browse files

keystone2: add wfi in to the core_spin loop


When core A turning of core B, via tetris DPSC it places the core
B DPSC into transitional state. The core B has to execute wfi instruction
to move its DPSC to the OFF state. This patch add such instruction.

Signed-off-by: default avatarVitaly Andrianov <vitalya@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent f5df36d0
Branches
Tags
No related merge requests found
...@@ -55,8 +55,13 @@ U_BOOT_CMD(mon_install, 2, 0, do_mon_install, ...@@ -55,8 +55,13 @@ U_BOOT_CMD(mon_install, 2, 0, do_mon_install,
static void core_spin(void) static void core_spin(void)
{ {
while (1) while (1) {
; /* forever */; asm volatile (
"dsb\n"
"isb\n"
"wfi\n"
);
}
} }
int mon_power_on(int core_id, void *ep) int mon_power_on(int core_id, void *ep)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment