Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108188
b: refs/heads/master
c: b42e737
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Aug 11, 2008
1 parent 58ce2d9 commit 4dd1199
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3295f0ef9ff048a4619ede597ad9ec9cab725654
refs/heads/master: b42e737e576339c795d9ac77a1fce6057f6bc0cf
7 changes: 6 additions & 1 deletion trunk/include/linux/lockdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ struct lock_chain {
};

#define MAX_LOCKDEP_KEYS_BITS 11
#define MAX_LOCKDEP_KEYS (1UL << MAX_LOCKDEP_KEYS_BITS)
/*
* Subtract one because we offset hlock->class_idx by 1 in order
* to make 0 mean no class. This avoids overflowing the class_idx
* bitfield and hitting the BUG in hlock_class().
*/
#define MAX_LOCKDEP_KEYS ((1UL << MAX_LOCKDEP_KEYS_BITS) - 1)

struct held_lock {
/*
Expand Down

0 comments on commit 4dd1199

Please sign in to comment.