diff options
author | Jason Baron <jbaron@redhat.com> | 2012-06-28 15:05:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-07-06 04:53:49 -0400 |
commit | 47fbc518a4b5c9a949f7cab8b14a00d3549bf138 (patch) | |
tree | 2feb9ec28b99535a981574bc85766112a7346e82 | |
parent | 326f418b4c74ab4a6066f38b6144bc6461f9447b (diff) |
jump label: Remove static_branch()
Remove the obsolete static_branch() interface, since the supported interface
is now static_key_false()/true() - which is used by all in-tree code.
See commit:
c5905afb0e ("static keys: Introduce 'struct static_key', static_key_true()/false()
and static_key_slow_[inc|dec]()").
Signed-off-by: Jason Baron <jbaron@redhat.com>
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/199332c47eef8005d5a5bf1018a80d25929a5746.1340909155.git.jbaron@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/jump_label.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index c513a40510f5..0976fc46d1e0 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h | |||
@@ -42,8 +42,7 @@ | |||
42 | * allowed. | 42 | * allowed. |
43 | * | 43 | * |
44 | * Not initializing the key (static data is initialized to 0s anyway) is the | 44 | * Not initializing the key (static data is initialized to 0s anyway) is the |
45 | * same as using STATIC_KEY_INIT_FALSE and static_key_false() is | 45 | * same as using STATIC_KEY_INIT_FALSE. |
46 | * equivalent with static_branch(). | ||
47 | * | 46 | * |
48 | */ | 47 | */ |
49 | 48 | ||
@@ -107,12 +106,6 @@ static __always_inline bool static_key_true(struct static_key *key) | |||
107 | return !static_key_false(key); | 106 | return !static_key_false(key); |
108 | } | 107 | } |
109 | 108 | ||
110 | /* Deprecated. Please use 'static_key_false() instead. */ | ||
111 | static __always_inline bool static_branch(struct static_key *key) | ||
112 | { | ||
113 | return arch_static_branch(key); | ||
114 | } | ||
115 | |||
116 | extern struct jump_entry __start___jump_table[]; | 109 | extern struct jump_entry __start___jump_table[]; |
117 | extern struct jump_entry __stop___jump_table[]; | 110 | extern struct jump_entry __stop___jump_table[]; |
118 | 111 | ||
@@ -166,14 +159,6 @@ static __always_inline bool static_key_true(struct static_key *key) | |||
166 | return false; | 159 | return false; |
167 | } | 160 | } |
168 | 161 | ||
169 | /* Deprecated. Please use 'static_key_false() instead. */ | ||
170 | static __always_inline bool static_branch(struct static_key *key) | ||
171 | { | ||
172 | if (unlikely(atomic_read(&key->enabled)) > 0) | ||
173 | return true; | ||
174 | return false; | ||
175 | } | ||
176 | |||
177 | static inline void static_key_slow_inc(struct static_key *key) | 162 | static inline void static_key_slow_inc(struct static_key *key) |
178 | { | 163 | { |
179 | atomic_inc(&key->enabled); | 164 | atomic_inc(&key->enabled); |