Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use PR_NOWAIT in dwc_otg_allocx as it can be cal...
details: https://anonhg.NetBSD.org/src/rev/040d657751c7
branches: trunk
changeset: 784127:040d657751c7
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jan 19 07:41:51 2013 +0000
description:
Use PR_NOWAIT in dwc_otg_allocx as it can be called in the USB softint via
completions.
diffstat:
sys/dev/usb/dwc_otg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 804619cc0215 -r 040d657751c7 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c Sat Jan 19 04:23:37 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c Sat Jan 19 07:41:51 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_otg.c,v 1.24 2013/01/13 15:27:17 skrll Exp $ */
+/* $NetBSD: dwc_otg.c,v 1.25 2013/01/19 07:41:51 skrll Exp $ */
/*-
* Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.24 2013/01/13 15:27:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.25 2013/01/19 07:41:51 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -377,7 +377,7 @@
DPRINTF("\n");
DOTG_EVCNT_INCR(sc->sc_ev_xferpoolget);
- xfer = pool_cache_get(sc->sc_xferpool, PR_WAITOK);
+ xfer = pool_cache_get(sc->sc_xferpool, PR_NOWAIT);
if (xfer != NULL) {
memset(xfer, 0, sizeof(struct dwc_otg_xfer));
#ifdef DIAGNOSTIC
Home |
Main Index |
Thread Index |
Old Index