Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312349
b: refs/heads/master
c: 47fbc51
h: refs/heads/master
i:
  312347: 622d40f
v: v3
  • Loading branch information
Jason Baron authored and Ingo Molnar committed Jul 6, 2012
1 parent 6d79dad commit bce0541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 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: 326f418b4c74ab4a6066f38b6144bc6461f9447b
refs/heads/master: 47fbc518a4b5c9a949f7cab8b14a00d3549bf138
17 changes: 1 addition & 16 deletions trunk/include/linux/jump_label.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
* allowed.
*
* Not initializing the key (static data is initialized to 0s anyway) is the
* same as using STATIC_KEY_INIT_FALSE and static_key_false() is
* equivalent with static_branch().
* same as using STATIC_KEY_INIT_FALSE.
*
*/

Expand Down Expand Up @@ -107,12 +106,6 @@ static __always_inline bool static_key_true(struct static_key *key)
return !static_key_false(key);
}

/* Deprecated. Please use 'static_key_false() instead. */
static __always_inline bool static_branch(struct static_key *key)
{
return arch_static_branch(key);
}

extern struct jump_entry __start___jump_table[];
extern struct jump_entry __stop___jump_table[];

Expand Down Expand Up @@ -166,14 +159,6 @@ static __always_inline bool static_key_true(struct static_key *key)
return false;
}

/* Deprecated. Please use 'static_key_false() instead. */
static __always_inline bool static_branch(struct static_key *key)
{
if (unlikely(atomic_read(&key->enabled)) > 0)
return true;
return false;
}

static inline void static_key_slow_inc(struct static_key *key)
{
atomic_inc(&key->enabled);
Expand Down

0 comments on commit bce0541

Please sign in to comment.