From: Alexandre Ghiti Date: Thu, 29 Feb 2024 12:10:55 +0000 (+0100) Subject: riscv: Remove superfluous smp_mb() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=29cee75fb66e6f2845360e0598974253bf79181a;p=linux.git riscv: Remove superfluous smp_mb() This memory barrier is not needed and not documented so simply remove it. Suggested-by: Andrea Parri Signed-off-by: Alexandre Ghiti Reviewed-by: Andrea Parri Link: https://lore.kernel.org/r/20240229121056.203419-2-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/kernel/patch.c b/arch/riscv/kernel/patch.c index 37e87fdcf6a00..0b5c16dfe3f45 100644 --- a/arch/riscv/kernel/patch.c +++ b/arch/riscv/kernel/patch.c @@ -239,7 +239,6 @@ static int patch_text_cb(void *data) } else { while (atomic_read(&patch->cpu_count) <= num_online_cpus()) cpu_relax(); - smp_mb(); } return ret;