Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Use IPL_SCHED for dwctwo(4) - no need for the KERNEL_LOCK.
details: https://anonhg.NetBSD.org/src/rev/c39ca6b67491
branches: trunk
changeset: 802102:c39ca6b67491
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Sep 02 14:55:56 2014 +0000
description:
Use IPL_SCHED for dwctwo(4) - no need for the KERNEL_LOCK.
diffstat:
sys/arch/arm/broadcom/bcm2835_dwctwo.c | 6 +++---
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c | 6 +++---
sys/external/bsd/dwc2/dwc2.h | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r 9ae685965416 -r c39ca6b67491 sys/arch/arm/broadcom/bcm2835_dwctwo.c
--- a/sys/arch/arm/broadcom/bcm2835_dwctwo.c Tue Sep 02 14:07:50 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_dwctwo.c Tue Sep 02 14:55:56 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_dwctwo.c,v 1.1 2013/09/05 20:49:25 skrll Exp $ */
+/* $NetBSD: bcm2835_dwctwo.c,v 1.2 2014/09/02 14:55:56 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_dwctwo.c,v 1.1 2013/09/05 20:49:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_dwctwo.c,v 1.2 2014/09/02 14:55:56 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -130,7 +130,7 @@
aprint_naive(": USB controller\n");
aprint_normal(": USB controller\n");
- sc->sc_ih = bcm2835_intr_establish(aaa->aaa_intr, IPL_USB,
+ sc->sc_ih = bcm2835_intr_establish(aaa->aaa_intr, IPL_SCHED,
dwc2_intr, &sc->sc_dwc2);
if (sc->sc_ih == NULL) {
diff -r 9ae685965416 -r c39ca6b67491 sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c
--- a/sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c Tue Sep 02 14:07:50 2014 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c Tue Sep 02 14:55:56 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwctwo_plb.c,v 1.2 2013/11/21 13:52:27 kiyohara Exp $ */
+/* $NetBSD: dwctwo_plb.c,v 1.3 2014/09/02 14:55:56 skrll Exp $ */
/*
* Copyright (c) 2013 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwctwo_plb.c,v 1.2 2013/11/21 13:52:27 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwctwo_plb.c,v 1.3 2014/09/02 14:55:56 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -112,7 +112,7 @@
bus_space_map(sc->sc_iot, paa->plb_addr, DWCTWO_SIZE, 0, &sc->sc_ioh);
sc->sc_bus.dmatag = paa->plb_dmat;
- intr_establish(paa->plb_irq, IST_LEVEL, IPL_USB, dwc2_intr, sc);
+ intr_establish(paa->plb_irq, IST_LEVEL, IPL_SCHED, dwc2_intr, sc);
/* Enable the USB interface. */
mtsdr(DCR_SDR0_PFC1, mfsdr(DCR_SDR0_PFC1) | SDR0_PFC1_USBEN);
diff -r 9ae685965416 -r c39ca6b67491 sys/external/bsd/dwc2/dwc2.h
--- a/sys/external/bsd/dwc2/dwc2.h Tue Sep 02 14:07:50 2014 +0000
+++ b/sys/external/bsd/dwc2/dwc2.h Tue Sep 02 14:55:56 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.h,v 1.2 2013/11/01 15:03:39 skrll Exp $ */
+/* $NetBSD: dwc2.h,v 1.3 2014/09/02 14:55:56 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
#define usleep_range(l, u) do { DELAY(u); } while (0)
#define spinlock_t kmutex_t
-#define spin_lock_init(lock) mutex_init(lock, MUTEX_DEFAULT, IPL_VM)
+#define spin_lock_init(lock) mutex_init(lock, MUTEX_DEFAULT, IPL_SCHED)
#define spin_lock(l) do { mutex_spin_enter(l); } while (0)
#define spin_unlock(l) do { mutex_spin_exit(l); } while (0)
Home |
Main Index |
Thread Index |
Old Index