diff options
author | Ben Collins <bcollins@ubuntu.com> | 2007-07-15 23:40:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 09:05:43 -0700 |
commit | b2ff457b09554813a7df9e0cd30d5a169a257419 (patch) | |
tree | 574ef82d8dbf66d161e9f5981e4b31d7c882dd48 /drivers/char | |
parent | 45807a1df9f51d28d0ff0c6bcf900c210411d7c9 (diff) | |
download | op-kernel-dev-b2ff457b09554813a7df9e0cd30d5a169a257419.zip op-kernel-dev-b2ff457b09554813a7df9e0cd30d5a169a257419.tar.gz |
RTC: Ratelimit "lost interrupts" message
We gets lots of these when the kernel is running on a hypervisor. Zach says
"a guest kernel trying to get high frequency RTC will also be inaccurate, and
inevitably will have unhidable interrupt lateness."
Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/rtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index 20380a2..22cf7aa 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c @@ -1159,7 +1159,8 @@ static void rtc_dropped_irq(unsigned long data) spin_unlock_irq(&rtc_lock); - printk(KERN_WARNING "rtc: lost some interrupts at %ldHz.\n", freq); + if (printk_ratelimit()) + printk(KERN_WARNING "rtc: lost some interrupts at %ldHz.\n", freq); /* Now we have new data */ wake_up_interruptible(&rtc_wait); |