aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@electric-eye.fr.zoreil.com>2005-11-16 17:44:05 -0500
committerFrancois Romieu <romieu@electric-eye.fr.zoreil.com>2005-11-16 17:44:05 -0500
commit7c8b2eb4c71d5c3d45dbfe0c81fefe81e264e9b3 (patch)
tree0e2d79d349bf0a2f73d90e3330894f7a8cf27327
parent0db169f9703115bab09eda5d89a8f6937a7bf98e (diff)
r8169: fix printk_ratelimit in the interrupt handler
I keep on getting "printk: N messages suppressed" messages. We need to test netif_msg_intr() _before_ running printk_ratelimit(), because the latter updates state. Cc: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
-rw-r--r--drivers/net/r8169.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 159b56a56ef4..bda6095f3120 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -2516,7 +2516,7 @@ rtl8169_interrupt(int irq, void *dev_instance, struct pt_regs *regs)
2516 } while (boguscnt > 0); 2516 } while (boguscnt > 0);
2517 2517
2518 if (boguscnt <= 0) { 2518 if (boguscnt <= 0) {
2519 if (net_ratelimit() && netif_msg_intr(tp)) { 2519 if (netif_msg_intr(tp) && net_ratelimit() ) {
2520 printk(KERN_WARNING 2520 printk(KERN_WARNING
2521 "%s: Too much work at interrupt!\n", dev->name); 2521 "%s: Too much work at interrupt!\n", dev->name);
2522 } 2522 }