netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] e1000 stop raw interrupts disabled nag from RT
@ 2007-03-01  2:54 Mark Huth
  2007-03-01  3:18 ` Kok, Auke
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Huth @ 2007-03-01  2:54 UTC (permalink / raw)
  To: netdev; +Cc: auke-jan.h.kok

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: netdev_e1000_stop_rt_interrupt_nagging.patch --]
[-- Type: text/x-patch, Size: 939 bytes --]

Current e1000_xmit_frame spews raw interrupt disabled nag messages when
used with RT kernel patches.  This patch uses spin_trylock_irqsave,
which allows RT patches to properly manage the irq semantics.

Signed-off-by: Mark Huth <mhuth@mvista.com>
---
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 619c892..48f94ee 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -3363,12 +3363,9 @@ e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
 	    (adapter->hw.mac_type == e1000_82573))
 		e1000_transfer_dhcp_info(adapter, skb);
 
-	local_irq_save(flags);
-	if (!spin_trylock(&tx_ring->tx_lock)) {
+	if (!spin_trylock_irqsave(&tx_ring->tx_lock, flags))
 		/* Collision - tell upper layer to requeue */
-		local_irq_restore(flags);
 		return NETDEV_TX_LOCKED;
-	}
 
 	/* need: count + 2 desc gap to keep tail from touching
 	 * head, otherwise try next time */

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-01 21:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01  2:54 [PATCH] e1000 stop raw interrupts disabled nag from RT Mark Huth
2007-03-01  3:18 ` Kok, Auke
2007-03-01  4:59   ` Mark Huth
2007-03-01 16:55     ` Kok, Auke
2007-03-01 17:11       ` Michal Schmidt
2007-03-01 17:29         ` Kok, Auke
2007-03-01 17:34           ` Michal Schmidt
2007-03-01 21:58         ` Mark Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).