diff options
author | Waiman Long <[email protected]> | 2018-10-02 16:19:17 -0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-10-03 08:46:02 +0200 |
commit | 8ee10862476ef8b9e81e5b521205fd5c620b4ffb (patch) | |
tree | 1a84b111fdc5b1ce298da14c4b951be6e377f534 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 44318d5b07be7d7cfe718aa22ea3b2577361a0b5 (diff) |
locking/lockdep: Eliminate redundant IRQs check in __lock_acquire()
The static __lock_acquire() function has only two callers:
1) lock_acquire()
2) reacquire_held_locks()
In lock_acquire(), raw_local_irq_save() is called beforehand. So
IRQs must have been disabled. So the check:
DEBUG_LOCKS_WARN_ON(!irqs_disabled())
is kind of redundant in this case. So move the above check
to reacquire_held_locks() to eliminate redundant code in the
lock_acquire() path.
Signed-off-by: Waiman Long <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions