Skip to content

Commit

Permalink
lockdep: lookup_chain_cache comment errata
Browse files Browse the repository at this point in the history
Signed-off-by: Jarek Poplawski <jarkao2@o2.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jarek Poplawski authored and Linus Torvalds committed May 8, 2007
1 parent 076fa0f commit 9e860d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,8 +1309,9 @@ register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force)

/*
* Look up a dependency chain. If the key is not present yet then
* add it and return 0 - in this case the new dependency chain is
* validated. If the key is already hashed, return 1.
* add it and return 1 - in this case the new dependency chain is
* validated. If the key is already hashed, return 0.
* (On return with 1 graph_lock is held.)
*/
static inline int lookup_chain_cache(u64 chain_key, struct lock_class *class)
{
Expand Down

0 comments on commit 9e860d0

Please sign in to comment.