mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] Fix tg3 driver disable interrupts bug for realtime-preempt-2.6.12-rc1-V0.7.41-14
@ 2005-03-29 19:16 Guillaume Foliard
  0 siblings, 0 replies; only message in thread
From: Guillaume Foliard @ 2005-03-29 19:16 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel

Hi,

I just noticed you've accepted a patch from Yang Yi dealing with interrupts
in the e1000 drivers on a PREEMPT_RT kernel. I did not yet understood the
problem but I blindly applied the same fix on the tg3 driver to get rid of the
following message :

network driver disabled interrupts: tg3_start_xmit+0x0/0x620


Signed-off-by: Guillaume Foliard <guifo@wanadoo.fr>

--- linux-2.6.12-rc1/drivers/net/tg3.c  2005-03-18 02:34:13 +0100
+++ linux-2.6.12-rc1-RT-V0.7.41-14/drivers/net/tg3.c    2005-03-29 20:25:33 +0200
@@ -3085,9 +3085,9 @@ static int tg3_start_xmit(struct sk_buff
         * So we really do need to disable interrupts when taking
         * tx_lock here.
         */
-       local_irq_save(flags);
+       local_irq_save_nort(flags);
        if (!spin_trylock(&tp->tx_lock)) {
-               local_irq_restore(flags);
+               local_irq_restore_nort(flags);
                return NETDEV_TX_LOCKED;
        }



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-29 19:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 19:16 [patch] Fix tg3 driver disable interrupts bug for realtime-preempt-2.6.12-rc1-V0.7.41-14 Guillaume Foliard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®