Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140507
b: refs/heads/master
c: f2d28a2
h: refs/heads/master
i:
  140505: dfeca72
  140503: 3463168
v: v3
  • Loading branch information
Guillaume Knispel authored and Ingo Molnar committed Mar 17, 2009
1 parent 902e790 commit dad9cb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 47239561e39bceefecc3cd67f71fcf86a198a8ff
refs/heads/master: f2d28a2ebcb525a6ec7e2152106ddb385ef52b73
7 changes: 5 additions & 2 deletions trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,11 @@ EXPORT_SYMBOL(printk_ratelimit);
bool printk_timed_ratelimit(unsigned long *caller_jiffies,
unsigned int interval_msecs)
{
if (*caller_jiffies == 0 || time_after(jiffies, *caller_jiffies)) {
*caller_jiffies = jiffies + msecs_to_jiffies(interval_msecs);
if (*caller_jiffies == 0
|| !time_in_range(jiffies, *caller_jiffies,
*caller_jiffies
+ msecs_to_jiffies(interval_msecs))) {
*caller_jiffies = jiffies;
return true;
}
return false;
Expand Down

0 comments on commit dad9cb5

Please sign in to comment.