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.
This commit is contained in:
Peter Wemm 2002-10-14 23:58:46 +00:00
parent 48f0495d85
commit 962deac027

View File

@ -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