lkml.org 
[lkml]   [2010]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectPatch to gianfar.c for 2.6.33.2-rt13
From
Thomas,
I found another gianfar.c issue under rt kernel, here is a small patch:

diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 453cfcf..5c85948 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1553,7 +1553,7 @@ void stop_gfar(struct net_device *dev)


/* Lock it down */
- local_irq_save(flags);
+ local_irq_save_nort(flags);
lock_tx_qs(priv);
lock_rx_qs(priv);

@@ -1561,7 +1561,7 @@ void stop_gfar(struct net_device *dev)

unlock_rx_qs(priv);
unlock_tx_qs(priv);
- local_irq_restore(flags);
+ local_irq_restore_nort(flags);

/* Free the IRQs */
if (priv->device_flags & FSL_GIANFAR_DEV_HAS_MULTI_INTR) {
thanks,
xianghua


\
 
 \ /
  Last update: 2010-04-24 00:01    [W:0.019 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site