]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
locking/lockdep: Simplify mark_held_locks()
authorFrederic Weisbecker <frederic@kernel.org>
Fri, 28 Dec 2018 05:02:00 +0000 (06:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 21 Jan 2019 10:18:54 +0000 (11:18 +0100)
commit436a49ae7b693161c4fdf98b575ef16243dc2dfa
tree8d073f826200a62c6993664b0718e062c75419fc
parentb5a4e2bb0f4c86bfeb38df3e1d5b2f1272f0e673
locking/lockdep: Simplify mark_held_locks()

The enum mark_type appears a bit artificial here. We can directly pass
the base enum lock_usage_bit value to mark_held_locks(). All we need
then is to add the read index for each lock if necessary. It makes the
code clearer.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
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/1545973321-24422-2-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep.c