summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/jump_label_ratelimit.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/jump_label_ratelimit.h')
-rw-r--r--kernel/include/linux/jump_label_ratelimit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/include/linux/jump_label_ratelimit.h b/kernel/include/linux/jump_label_ratelimit.h
index 089f70f83..23da3af45 100644
--- a/kernel/include/linux/jump_label_ratelimit.h
+++ b/kernel/include/linux/jump_label_ratelimit.h
@@ -14,6 +14,7 @@ struct static_key_deferred {
#ifdef HAVE_JUMP_LABEL
extern void static_key_slow_dec_deferred(struct static_key_deferred *key);
+extern void static_key_deferred_flush(struct static_key_deferred *key);
extern void
jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl);
@@ -26,6 +27,10 @@ static inline void static_key_slow_dec_deferred(struct static_key_deferred *key)
STATIC_KEY_CHECK_USE();
static_key_slow_dec(&key->key);
}
+static inline void static_key_deferred_flush(struct static_key_deferred *key)
+{
+ STATIC_KEY_CHECK_USE();
+}
static inline void
jump_label_rate_limit(struct static_key_deferred *key,
unsigned long rl)