Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2ff457b authored by Ben Collins's avatar Ben Collins Committed by Linus Torvalds
Browse files

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: default avatarBen Collins <bcollins@ubuntu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 45807a1d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1159,6 +1159,7 @@ 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);

	/* Now we have new data */