aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/jump_label.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h
index 2172da2d9bb4..c513a40510f5 100644
--- a/include/linux/jump_label.h
+++ b/include/linux/jump_label.h
@@ -127,7 +127,6 @@ extern int jump_label_text_reserved(void *start, void *end);
127extern void static_key_slow_inc(struct static_key *key); 127extern void static_key_slow_inc(struct static_key *key);
128extern void static_key_slow_dec(struct static_key *key); 128extern void static_key_slow_dec(struct static_key *key);
129extern void static_key_slow_dec_deferred(struct static_key_deferred *key); 129extern void static_key_slow_dec_deferred(struct static_key_deferred *key);
130extern bool static_key_enabled(struct static_key *key);
131extern void jump_label_apply_nops(struct module *mod); 130extern void jump_label_apply_nops(struct module *mod);
132extern void 131extern void
133jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl); 132jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl);
@@ -198,11 +197,6 @@ static inline int jump_label_text_reserved(void *start, void *end)
198static inline void jump_label_lock(void) {} 197static inline void jump_label_lock(void) {}
199static inline void jump_label_unlock(void) {} 198static inline void jump_label_unlock(void) {}
200 199
201static inline bool static_key_enabled(struct static_key *key)
202{
203 return (atomic_read(&key->enabled) > 0);
204}
205
206static inline int jump_label_apply_nops(struct module *mod) 200static inline int jump_label_apply_nops(struct module *mod)
207{ 201{
208 return 0; 202 return 0;
@@ -224,4 +218,9 @@ jump_label_rate_limit(struct static_key_deferred *key,
224#define STATIC_KEY_INIT STATIC_KEY_INIT_FALSE 218#define STATIC_KEY_INIT STATIC_KEY_INIT_FALSE
225#define jump_label_enabled static_key_enabled 219#define jump_label_enabled static_key_enabled
226 220
221static inline bool static_key_enabled(struct static_key *key)
222{
223 return (atomic_read(&key->enabled) > 0);
224}
225
227#endif /* _LINUX_JUMP_LABEL_H */ 226#endif /* _LINUX_JUMP_LABEL_H */