summaryrefslogtreecommitdiff
path: root/drivers/timer/sandbox_timer.c
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-09-21 07:51:38 -0400
committerAndes <uboot@andestech.com>2020-09-30 08:54:52 +0800
commit768502e2a7f283a715dd1f62e304393a88422545 (patch)
tree9e694fec29328230987612d8930de871bc12d254 /drivers/timer/sandbox_timer.c
parentf760c9a1fd485beae7612e39576e5fbf77c5d96b (diff)
riscv: Clear pending IPIs on initialization
Even though we no longer call smp_function if an IPI was not sent by U-Boot, we still need to clear any IPIs which were pending from the execution environment. Otherwise, secondary harts will busy-wait in secondary_hart_loop, instead of relaxing. Along with the previous commit ("riscv: Use a valid bit to ignore already-pending IPIs"), this fixes SMP booting on the Kendryte K210. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'drivers/timer/sandbox_timer.c')
0 files changed, 0 insertions, 0 deletions