locking/lockdep: increase size of counters for lockdep statistics
authorKobe Wu <kobe-cp.wu@mediatek.com>
Mon, 24 Jun 2019 08:35:48 +0000 (16:35 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Jun 2019 08:17:08 +0000 (10:17 +0200)
commit9156e545765e467e6268c4814cfa609ebb16237e
tree744dbec6c9d15f87874364e706268816460748d9
parentebf8d82bbb32720878a3867b28e655950ccee992
locking/lockdep: increase size of counters for lockdep statistics

When system has been running for a long time, signed integer
counters are not enough for some lockdep statistics. Using
unsigned long counters can satisfy the requirement. Besides,
most of lockdep statistics are unsigned. It is better to use
unsigned int instead of int.

Remove unused variables.
- max_recursion_depth
- nr_cyclic_check_recursions
- nr_find_usage_forwards_recursions
- nr_find_usage_backwards_recursions

Signed-off-by: Kobe Wu <kobe-cp.wu@mediatek.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <linux-mediatek@lists.infradead.org>
Cc: <wsd_upstream@mediatek.com>
Cc: Eason Lin <eason-yh.lin@mediatek.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Link: https://lkml.kernel.org/r/1561365348-16050-1-git-send-email-kobe-cp.wu@mediatek.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep_internals.h