Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277264
b: refs/heads/master
c: c8452af
h: refs/heads/master
v: v3
  • Loading branch information
Gleb Natapov authored and Steven Rostedt committed Nov 7, 2011
1 parent 8c427ec commit fa18449
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: 8ee3c92b7f2751c392be2d8fc360a410480b8757
refs/heads/master: c8452afb7426f7e21388492f40227582e3e83879
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 fa18449

Please sign in to comment.