]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86-64: avoid warning message livelock
authorRoland Dreier <rdreier@cisco.com>
Tue, 13 Feb 2007 12:26:25 +0000 (13:26 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 13 Feb 2007 12:26:25 +0000 (13:26 +0100)
commit3e94fb8f54c5305ed472e0867cd67d53e05bfb64
treec14b7d3bbc7c7425b92a693629330ef1d25e43f3
parentee4eff6ff6cbfc8ce38131058a18802bf6206879
[PATCH] x86-64: avoid warning message livelock

I've seen my box paralyzed by an endless spew of

    rtc: lost some interrupts at 1024Hz.

messages on the serial console.  What seems to be happening is that
something real causes an interrupt to be lost and triggers the
message.  But then printing the message to the serial console (from
the hpet interrupt handler) takes more than 1/1024th of a second, and
then some more interrupts are lost, so the message triggers again....

Fix this by adding a printk_ratelimit() before printing the warning.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/time.c