arch/risc-v: Remove g_serial_ok
`WFI` is enough to wait the ready signal from master core, so we can remove it. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
422e005183
commit
71d3ff1045
@ -59,7 +59,6 @@
|
||||
*/
|
||||
|
||||
uintptr_t g_idle_topstack = C906_IDLESTACK_TOP;
|
||||
volatile bool g_serial_ok = false;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -115,8 +114,6 @@ void __c906_start(uint32_t mhartid)
|
||||
|
||||
showprogress('B');
|
||||
|
||||
g_serial_ok = true;
|
||||
|
||||
/* Do board initialization */
|
||||
|
||||
c906_boardinitialize();
|
||||
|
@ -41,16 +41,6 @@
|
||||
#include "riscv_internal.h"
|
||||
#include "chip.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
extern volatile bool g_serial_ok;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
@ -76,12 +66,6 @@ void riscv_cpu_boot(int cpu)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Wait for g_serial_ok set by cpu0 when booting */
|
||||
|
||||
while (!g_serial_ok)
|
||||
{
|
||||
}
|
||||
|
||||
/* Clear machine software interrupt for CPU(cpu) */
|
||||
|
||||
putreg32(0, (uintptr_t)RISCV_CLINT_MSIP + (4 * cpu));
|
||||
|
@ -53,7 +53,6 @@
|
||||
*/
|
||||
|
||||
uintptr_t g_idle_topstack = K210_IDLESTACK0_TOP;
|
||||
volatile bool g_serial_ok = false;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -109,8 +108,6 @@ void __k210_start(uint32_t mhartid)
|
||||
|
||||
showprogress('B');
|
||||
|
||||
g_serial_ok = true;
|
||||
|
||||
/* Do board initialization */
|
||||
|
||||
k210_boardinitialize();
|
||||
|
@ -61,7 +61,6 @@
|
||||
*/
|
||||
|
||||
uintptr_t g_idle_topstack = MPFS_IDLESTACK_TOP;
|
||||
volatile bool g_serial_ok = false;
|
||||
|
||||
/* Default boot address for every hart */
|
||||
|
||||
@ -159,8 +158,6 @@ void __mpfs_start(uint32_t mhartid)
|
||||
|
||||
showprogress('B');
|
||||
|
||||
g_serial_ok = true;
|
||||
|
||||
/* Do board initialization */
|
||||
|
||||
mpfs_boardinitialize();
|
||||
|
Loading…
Reference in New Issue
Block a user