MIPS: dump_tlb: Refactor TLB matching
authorJames Hogan <james.hogan@imgtec.com>
Tue, 19 May 2015 08:50:33 +0000 (09:50 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:52:33 +0000 (21:52 +0200)
commitd1ce483e45ba86bc3b59ba46cca9ad044b09051e
treeae230618cc91f316dcb89dd319c22c2042248555
parent137877e4327075d839f15776cb6865ee171f2175
MIPS: dump_tlb: Refactor TLB matching

Refactor the TLB matching code in dump_tlb() slightly so that the
conditions which can cause a TLB entry to be skipped can be more easily
extended. This should prevent the match condition getting unwieldy once
it is updated to take further conditions into account.

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