Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276422
b: refs/heads/master
c: bbbf7af
h: refs/heads/master
v: v3
  • Loading branch information
Gleb Natapov authored and Steven Rostedt committed Dec 5, 2011
1 parent 447c8b8 commit fbb6ebb
Show file tree
Hide file tree
Showing 2 changed files with 3 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: c7c6ec8becaf742b223c7b491f4893014be23a07
refs/heads/master: bbbf7af4bf8fc69bc751818cf30521080fa47dcb
3 changes: 2 additions & 1 deletion trunk/kernel/jump_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit fbb6ebb

Please sign in to comment.