MIPS: tlb-r3k: Optimise a TLBWI barrier in TLB invalidation
authorMaciej W. Rozycki <macro@linux-mips.org>
Wed, 27 May 2015 13:15:20 +0000 (14:15 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:52:41 +0000 (21:52 +0200)
Replace an explicit barrier with a useful processor instruction in TLB
invalidation, following several other such cases elsewhere in
`tlb-r3k.c'.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10196/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlb-r3k.c

index 49b7132069d0b433622a0aa8285d0c1898ab2b20..2b75b8f880ed1f50df9429d758d2b4d5cf624cd2 100644 (file)
@@ -45,10 +45,10 @@ static void local_flush_tlb_from(int entry)
 
        old_ctx = read_c0_entryhi() & ASID_MASK;
        write_c0_entrylo0(0);
-       for (; entry < current_cpu_data.tlbsize; entry++) {
+       while (entry < current_cpu_data.tlbsize) {
                write_c0_index(entry << 8);
                write_c0_entryhi((entry | 0x80000) << 12);
-               BARRIER;
+               entry++;                                /* BARRIER */
                tlb_write_indexed();
        }
        write_c0_entryhi(old_ctx);
This page took 0.051374 seconds and 5 git commands to generate.