]> 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)
commit0a718bfb08239ed9a9a3f31f5c9cd34385c05d10
tree57c83572647179b396e7794d924120115b153dd1
parentf54242840b6338691df1bc4c333b41274458a3cf
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: cbf4567f88e5 ("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