diff options
author | Paul Burton <paul.burton@mips.com> | 2019-02-07 19:07:04 +0000 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-02-07 12:59:45 -0800 |
commit | 3315b6b336c88969547f7e9f2e105a815eea529a (patch) | |
tree | 811d822af9c1fa64ed7ba432a612d55631f95502 /arch/mips/mm/c-r3k.c | |
parent | c7e2d71dda7ac4731bae54a25c49cd81fe7b9046 (diff) | |
download | linux-stable-3315b6b336c88969547f7e9f2e105a815eea529a.tar.gz linux-stable-3315b6b336c88969547f7e9f2e105a815eea529a.tar.bz2 linux-stable-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-r3k.c')
-rw-r--r-- | arch/mips/mm/c-r3k.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/mips/mm/c-r3k.c b/arch/mips/mm/c-r3k.c index 01848cdf2074..0ca401ddf3b7 100644 --- a/arch/mips/mm/c-r3k.c +++ b/arch/mips/mm/c-r3k.c @@ -274,30 +274,6 @@ static void r3k_flush_data_cache_page(unsigned long addr) { } -static void r3k_flush_cache_sigtramp(unsigned long addr) -{ - unsigned long flags; - - pr_debug("csigtramp[%08lx]\n", addr); - - flags = read_c0_status(); - - write_c0_status(flags&~ST0_IEC); - - /* Fill the TLB to avoid an exception with caches isolated. */ - asm( "lw\t$0, 0x000(%0)\n\t" - "lw\t$0, 0x004(%0)\n\t" - : : "r" (addr) ); - - write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC); - - asm( "sb\t$0, 0x000(%0)\n\t" - "sb\t$0, 0x004(%0)\n\t" - : : "r" (addr) ); - - write_c0_status(flags); -} - static void r3k_flush_kernel_vmap_range(unsigned long vaddr, int size) { BUG(); @@ -331,7 +307,6 @@ void r3k_cache_init(void) __flush_kernel_vmap_range = r3k_flush_kernel_vmap_range; - flush_cache_sigtramp = r3k_flush_cache_sigtramp; local_flush_data_cache_page = local_r3k_flush_data_cache_page; flush_data_cache_page = r3k_flush_data_cache_page; |