History

riscv: mm: Fix code comment

Fix the comment since vmalloc_fault doesn't reach flush_tlb_fix_spurious_fault.

ShihPo Hung committed 7 years ago

Commit 0db7f5c1 parent e3f9dad1 file · +0 −3Browse files

Unified · Split

arch/riscv/mm/fault.c+0−3
@@ -272,9 +272,6 @@ vmalloc_fault: · 271 unmodified lines
272 * entries, but in RISC-V, SFENCE.VMA specifies an272 * entries, but in RISC-V, SFENCE.VMA specifies an
273 * ordering constraint, not a cache flush; it is273 * ordering constraint, not a cache flush; it is
274 * necessary even after writing invalid entries.274 * necessary even after writing invalid entries.
275 * Relying on flush_tlb_fix_spurious_fault would
276 * suffice, but the extra traps reduce
277 * performance. So, eagerly SFENCE.VMA.
278 */275 */
279 local_flush_tlb_page(addr);276 local_flush_tlb_page(addr);
280 277