mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-31 12:13:10 +00:00
Don't use spinlocks here. The iicbus transactions can take a long
time, and this prevents interrupts (say for Hz/hardclock) from happening. Time stands still during the transfers...
This commit is contained in:
parent
f0f86fcd52
commit
1a13e01f7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168806
@ -59,10 +59,10 @@ struct icee_softc {
|
||||
int wr_sz; /* What's the write page size */
|
||||
};
|
||||
|
||||
#define ICEE_LOCK(_sc) mtx_lock_spin(&(_sc)->sc_mtx)
|
||||
#define ICEE_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->sc_mtx)
|
||||
#define ICEE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
|
||||
#define ICEE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
|
||||
#define ICEE_LOCK_INIT(_sc) \
|
||||
mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), "icee", MTX_SPIN)
|
||||
mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), "icee", MTX_DEF)
|
||||
#define ICEE_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx);
|
||||
#define ICEE_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED);
|
||||
#define ICEE_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
|
||||
|
Loading…
Reference in New Issue
Block a user