Commit a28ee477 authored by Christian Dietrich's avatar Christian Dietrich Committed by Jiri Kosina

drivers/char/rtc: use printk_ratelimited instead of printk_ratelimit

Since printk_ratelimit() shouldn't be used anymore (see comment in
include/linux/printk.h), replace it with printk_ratelimited.
Signed-off-by: default avatarChristian Dietrich <christian.dietrich@informatik.uni-erlangen.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 5369fcc1
......@@ -80,6 +80,7 @@
#include <linux/bcd.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/ratelimit.h>
#include <asm/current.h>
#include <asm/system.h>
......@@ -1195,10 +1196,8 @@ static void rtc_dropped_irq(unsigned long data)
spin_unlock_irq(&rtc_lock);
if (printk_ratelimit()) {
printk(KERN_WARNING "rtc: lost some interrupts at %ldHz.\n",
freq);
}
printk_ratelimited(KERN_WARNING "rtc: lost some interrupts at %ldHz.\n",
freq);
/* Now we have new data */
wake_up_interruptible(&rtc_wait);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment