• Roland Dreier's avatar
    [PATCH] x86-64: avoid warning message livelock · 3e94fb8f
    Roland Dreier authored
    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: default avatarRoland Dreier <rolandd@cisco.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    3e94fb8f
time.c 34.3 KB