projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'omap/soc' into next/soc
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
jump_label.c
diff --git
a/kernel/jump_label.c
b/kernel/jump_label.c
index bbdfe2a462a088b210d5792c674b215274b1b39b..66ff7109f6970ca63cb4aa9bf6b4800d69ef2f3a 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();
}