From owner-p4-projects@FreeBSD.ORG Thu Mar 23 21:49:58 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DF37F16A429; Thu, 23 Mar 2006 21:49:57 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDB5D16A423 for ; Thu, 23 Mar 2006 21:49:57 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC4C143D53 for ; Thu, 23 Mar 2006 21:49:54 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2NLnscA014228 for ; Thu, 23 Mar 2006 21:49:54 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2NLnsQY014225 for perforce@freebsd.org; Thu, 23 Mar 2006 21:49:54 GMT (envelope-from imp@freebsd.org) Date: Thu, 23 Mar 2006 21:49:54 GMT Message-Id: <200603232149.k2NLnsQY014225@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 93878 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2006 21:49:58 -0000 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);