riscv: mm: Fix code comment
authorShihPo Hung <shihpo.hung@sifive.com>
Tue, 18 Jun 2019 09:39:15 +0000 (17:39 +0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Wed, 26 Jun 2019 22:10:30 +0000 (15:10 -0700)
Fix the comment since vmalloc_fault doesn't reach
flush_tlb_fix_spurious_fault.

Signed-off-by: ShihPo Hung <shihpo.hung@sifive.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: linux-riscv@lists.infradead.org
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/mm/fault.c

index 3e2708c626a854884358ced1e6f60bbd1e5f5fa6..f960c3f4ce47c36ea24dfa601dc82bf7a931cedd 100644 (file)
@@ -272,9 +272,6 @@ vmalloc_fault:
                 * entries, but in RISC-V, SFENCE.VMA specifies an
                 * ordering constraint, not a cache flush; it is
                 * necessary even after writing invalid entries.
-                * Relying on flush_tlb_fix_spurious_fault would
-                * suffice, but the extra traps reduce
-                * performance. So, eagerly SFENCE.VMA.
                 */
                local_flush_tlb_page(addr);