]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: dump_tlb: Only dump PageGrain if interesting
authorJames Hogan <james.hogan@imgtec.com>
Wed, 15 Jul 2015 15:17:45 +0000 (16:17 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 3 Sep 2015 10:07:48 +0000 (12:07 +0200)
commit6e3c7d017c730bd0ea12e935cc3172b36680c443
tree57c83572647179b396e7794d924120115b153dd1
parentc54b53bd4aadf992242251cab526b213e538b36b
MIPS: dump_tlb: Only dump PageGrain if interesting

The PageGrain register may not exist if certain architectural features
aren't present, therefore only print out its value when dumping the TLB
registers if it is expected to contain fields relevant to the TLB.

Fixes: 35df0fbdfbda ("MIPS: Add SysRq operation to dump TLBs on all CPUs")
Reported-by: Joshua Kinard <kumba@gentoo.org>
Reported-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Joshua Kinard <kumba@gentoo.org>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10723/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/dump_tlb.c