Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: mm: c-r4k: Add support for flushing user pages from cache

Use the userspace cache flushing functions if the interrupted
process is a userspace one.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>

authored by

Markos Chandras and committed by
Ralf Baechle
80ca69f4 4caa906e

+4 -2
+4 -2
arch/mips/mm/c-r4k.c
··· 562 562 } 563 563 564 564 if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) { 565 - r4k_blast_dcache_page(addr); 565 + vaddr ? r4k_blast_dcache_page(addr) : 566 + r4k_blast_dcache_user_page(addr); 566 567 if (exec && !cpu_icache_snoops_remote_store) 567 568 r4k_blast_scache_page(addr); 568 569 } ··· 574 573 if (cpu_context(cpu, mm) != 0) 575 574 drop_mmu_context(mm, cpu); 576 575 } else 577 - r4k_blast_icache_page(addr); 576 + vaddr ? r4k_blast_icache_page(addr) : 577 + r4k_blast_icache_user_page(addr); 578 578 } 579 579 580 580 if (vaddr) {