mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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: Vitaly Andrianov <vitalya@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
f5df36d0c8
commit
17c5bda2a9
1 changed files with 7 additions and 2 deletions
|
@ -55,8 +55,13 @@ U_BOOT_CMD(mon_install, 2, 0, do_mon_install,
|
|||
|
||||
static void core_spin(void)
|
||||
{
|
||||
while (1)
|
||||
; /* forever */;
|
||||
while (1) {
|
||||
asm volatile (
|
||||
"dsb\n"
|
||||
"isb\n"
|
||||
"wfi\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
int mon_power_on(int core_id, void *ep)
|
||||
|
|
Loading…
Reference in a new issue