riscv: Remove superfluous smp_mb()
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Thu, 29 Feb 2024 12:10:55 +0000 (13:10 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 17 Apr 2024 01:27:46 +0000 (18:27 -0700)
This memory barrier is not needed and not documented so simply remove
it.

Suggested-by: Andrea Parri <andrea@rivosinc.com>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20240229121056.203419-2-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/patch.c

index 37e87fdcf6a00057663ffd636c50e85e865be3c4..0b5c16dfe3f4512ba589bf507ab19aed4dcaa83f 100644 (file)
@@ -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;