From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 14 Sep 2020 10:08:30 +0800 Subject: [PATCH 4/7] riscv: Clear pending IPIs on initialization In-Reply-To: <20200907181659.92449-5-seanga2@gmail.com> References: <20200907181659.92449-1-seanga2@gmail.com> <20200907181659.92449-5-seanga2@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 8, 2020 at 2:17 AM Sean Anderson wrote: > > 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. > > Signed-off-by: Sean Anderson > --- > > arch/riscv/cpu/cpu.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > Reviewed-by: Bin Meng