projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b09c3e3
)
lockdep: fix spurious 'inconsistent lock state' warning
author
Dmitry Baryshkov
<
[email protected]
>
Mon, 18 Aug 2008 00:26:37 +0000
(
04:26
+0400)
committer
Ingo Molnar
<
[email protected]
>
Mon, 18 Aug 2008 07:42:31 +0000
(09:42 +0200)
Since
f82b217e3513fe3af342c0f3ee1494e86250c21c
lockdep can output spurious
warnings related to hwirqs due to hardirq_off shrinkage from int to bit-sized
flag. Guard it with double negation to fix the warning.
Signed-off-by: Dmitry Baryshkov <
[email protected]
>
Acked-by: Peter Zijlstra <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/lockdep.c
patch
|
blob
|
history
diff --git
a/kernel/lockdep.c
b/kernel/lockdep.c
index 77fa776a2da800b5ad1d96ee4f8e599d0ec714b0..3bfb1877a00372b0a99e4a37d1686a220251b910 100644
(file)
--- a/
kernel/lockdep.c
+++ b/
kernel/lockdep.c
@@
-2582,7
+2582,7
@@
static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass,
hlock->trylock = trylock;
hlock->read = read;
hlock->check = check;
- hlock->hardirqs_off = hardirqs_off;
+ hlock->hardirqs_off =
!!
hardirqs_off;
#ifdef CONFIG_LOCK_STAT
hlock->waittime_stamp = 0;
hlock->holdtime_stamp = sched_clock();