git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: Add another AR3012 04ca:3018 device
[pandora-kernel.git]
/
kernel
/
jump_label.c
diff --git
a/kernel/jump_label.c
b/kernel/jump_label.c
index
bbdfe2a
..
66ff710
100644
(file)
--- a/
kernel/jump_label.c
+++ b/
kernel/jump_label.c
@@
-66,8
+66,9
@@
void jump_label_inc(struct jump_label_key *key)
return;
jump_label_lock();
- if (atomic_
add_return(1, &key->enabled) == 1
)
+ if (atomic_
read(&key->enabled) == 0
)
jump_label_update(key, JUMP_LABEL_ENABLE);
+ atomic_inc(&key->enabled);
jump_label_unlock();
}