MIPS: dump_tlb: Use tlbr hazard macros
authorJames Hogan <james.hogan@imgtec.com>
Tue, 19 May 2015 08:50:32 +0000 (09:50 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:52:32 +0000 (21:52 +0200)
commit137877e4327075d839f15776cb6865ee171f2175
tree88538c7cf3e0ed997487418de965b09b13d36d42
parent8ab6abcb6aa475f458a3a81a69cca17840daafd1
MIPS: dump_tlb: Use tlbr hazard macros

Use the new tlb read hazard macros from <asm/hazards.h> rather than the
local BARRIER() macro which uses 7 ops regardless of the kernel
configuration.

We use mtc0_tlbr_hazard for the hazard between mtc0 to the index
register and the tlbr, and tlb_read_hazard for the hazard between the
tlbr and the mfc0 of the TLB registers written by tlbr.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10074/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/dump_tlb.c