Date: Thu, 23 Mar 2006 21:49:54 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93878 for review Message-ID: <200603232149.k2NLnsQY014225@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93878 Change 93878 by imp@imp_Speedy on 2006/03/23 21:48:55 spin locks for fast interrupts Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91_pio.c#8 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91_pio.c#8 (text+ko) ==== @@ -64,11 +64,11 @@ bus_write_4(sc->mem_res, off, val); } -#define AT91_PIO_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) -#define AT91_PIO_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) +#define AT91_PIO_LOCK(_sc) mtx_lock_spin(&(_sc)->sc_mtx) +#define AT91_PIO_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->sc_mtx) #define AT91_PIO_LOCK_INIT(_sc) \ mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \ - "pio", MTX_DEF) + "pio", MTX_SPIN) #define AT91_PIO_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); #define AT91_PIO_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); #define AT91_PIO_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603232149.k2NLnsQY014225>