diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
commit | 1236d6bb6e19fc72ffc6bbcdeb1bfefe450e54ee (patch) | |
tree | 47da3feee8e263e8c9352c85cf518e624be3c211 /lib/ratelimit.c | |
parent | 750b1a6894ecc9b178c6e3d0a1170122971b2036 (diff) | |
parent | 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (diff) |
Merge 4.14-rc4 into staging-next
We want the staging/iio fixes in here as well to handle merge issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/ratelimit.c')
-rw-r--r-- | lib/ratelimit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ratelimit.c b/lib/ratelimit.c index 08f8043cac61..d01f47135239 100644 --- a/lib/ratelimit.c +++ b/lib/ratelimit.c | |||
@@ -48,7 +48,9 @@ int ___ratelimit(struct ratelimit_state *rs, const char *func) | |||
48 | if (time_is_before_jiffies(rs->begin + rs->interval)) { | 48 | if (time_is_before_jiffies(rs->begin + rs->interval)) { |
49 | if (rs->missed) { | 49 | if (rs->missed) { |
50 | if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) { | 50 | if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) { |
51 | pr_warn("%s: %d callbacks suppressed\n", func, rs->missed); | 51 | printk_deferred(KERN_WARNING |
52 | "%s: %d callbacks suppressed\n", | ||
53 | func, rs->missed); | ||
52 | rs->missed = 0; | 54 | rs->missed = 0; |
53 | } | 55 | } |
54 | } | 56 | } |