summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xlreg.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-10-14 23:58:46 +0000
committerpeter <peter@FreeBSD.org>2002-10-14 23:58:46 +0000
commitf44a0bb8f927f75cea0a810df38d33fbda57c0db (patch)
tree48945187c291e111a02c3745a23fbf4dc36dc1ce /sys/pci/if_xlreg.h
parent750c7540cce0153325a3b5a85bd95bcf7bf2100b (diff)
downloadFreeBSD-src-f44a0bb8f927f75cea0a810df38d33fbda57c0db.zip
FreeBSD-src-f44a0bb8f927f75cea0a810df38d33fbda57c0db.tar.gz
Turn off the premature locking in xl. The driver tries to use the mutexes
as spl replacements, but you cant sleep while holding mutexes. This change has been made on many other drivers.
Diffstat (limited to 'sys/pci/if_xlreg.h')
-rw-r--r--sys/pci/if_xlreg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/pci/if_xlreg.h b/sys/pci/if_xlreg.h
index 5e1b920..d255752 100644
--- a/sys/pci/if_xlreg.h
+++ b/sys/pci/if_xlreg.h
@@ -589,8 +589,14 @@ struct xl_softc {
struct mtx xl_mtx;
};
+#if 0
+/* These are a bit premature. The driver still tries to sleep with locks. */
#define XL_LOCK(_sc) mtx_lock(&(_sc)->xl_mtx)
#define XL_UNLOCK(_sc) mtx_unlock(&(_sc)->xl_mtx)
+#else
+#define XL_LOCK(x) do { } while (0)
+#define XL_UNLOCK(x) do { } while (0)
+#endif
#define xl_rx_goodframes(x) \
((x.xl_upper_frames_ok & 0x03) << 8) | x.xl_rx_frames_ok
OpenPOWER on IntegriCloud