mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
lockdep: Introduce lockdep_assert_held()
Add a lockdep helper to validate that we indeed are the owner of a lock. Signed-off-by: Peter Zijlstra <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
98c33eddaf
commit
f607c66857
3 changed files with 43 additions and 0 deletions
|
|
@ -6609,6 +6609,8 @@ int cond_resched_lock(spinlock_t *lock)
|
|||
int resched = should_resched();
|
||||
int ret = 0;
|
||||
|
||||
lockdep_assert_held(lock);
|
||||
|
||||
if (spin_needbreak(lock) || resched) {
|
||||
spin_unlock(lock);
|
||||
if (resched)
|
||||
|
|
|
|||
Loading…
Reference in a new issue