diff options
author | Paul Burton <paul.burton@mips.com> | 2019-02-07 20:07:04 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-02-07 21:59:45 +0100 |
commit | 3315b6b336c88969547f7e9f2e105a815eea529a (patch) | |
tree | 811d822af9c1fa64ed7ba432a612d55631f95502 /arch/mips/mm/c-octeon.c | |
parent | MIPS: Fix set_pte() for Netlogic XLR using cmpxchg64() (diff) | |
download | linux-3315b6b336c88969547f7e9f2e105a815eea529a.tar.xz linux-3315b6b336c88969547f7e9f2e105a815eea529a.zip |
MIPS: Delete unused flush_cache_sigtramp()
Commit adcc81f148d7 ("MIPS: math-emu: Write-protect delay slot emulation
pages") left flush_cache_sigtramp() unused. Delete the dead code.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: linux-mips@vger.kernel.org
Diffstat (limited to 'arch/mips/mm/c-octeon.c')
-rw-r--r-- | arch/mips/mm/c-octeon.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/mips/mm/c-octeon.c b/arch/mips/mm/c-octeon.c index 0e45b061e514..8064821e9805 100644 --- a/arch/mips/mm/c-octeon.c +++ b/arch/mips/mm/c-octeon.c @@ -128,23 +128,6 @@ static void octeon_flush_icache_range(unsigned long start, unsigned long end) /** - * Flush the icache for a trampoline. These are used for interrupt - * and exception hooking. - * - * @addr: Address to flush - */ -static void octeon_flush_cache_sigtramp(unsigned long addr) -{ - struct vm_area_struct *vma; - - down_read(¤t->mm->mmap_sem); - vma = find_vma(current->mm, addr); - octeon_flush_icache_all_cores(vma); - up_read(¤t->mm->mmap_sem); -} - - -/** * Flush a range out of a vma * * @vma: VMA to flush @@ -289,7 +272,6 @@ void octeon_cache_init(void) flush_cache_mm = octeon_flush_cache_mm; flush_cache_page = octeon_flush_cache_page; flush_cache_range = octeon_flush_cache_range; - flush_cache_sigtramp = octeon_flush_cache_sigtramp; flush_icache_all = octeon_flush_icache_all; flush_data_cache_page = octeon_flush_data_cache_page; flush_icache_range = octeon_flush_icache_range; |