Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jmcneill-usbmp]: src/sys/dev/usb remove the spl handling from usb_insert...
details: https://anonhg.NetBSD.org/src/rev/de396ce5659a
branches: jmcneill-usbmp
changeset: 771792:de396ce5659a
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Feb 19 21:37:12 2012 +0000
description:
remove the spl handling from usb_insert_transfer() since we're
already holding the relevant lock (which is asserted.)
diffstat:
sys/dev/usb/usbdi.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 349a5ae376c5 -r de396ce5659a sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Sun Feb 19 21:01:52 2012 +0000
+++ b/sys/dev/usb/usbdi.c Sun Feb 19 21:37:12 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.134.2.5 2011/12/09 01:53:00 mrg Exp $ */
+/* $NetBSD: usbdi.c,v 1.134.2.6 2012/02/19 21:37:12 mrg Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.134.2.5 2011/12/09 01:53:00 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.134.2.6 2012/02/19 21:37:12 mrg Exp $");
#include "opt_compat_netbsd.h"
#include "opt_usb.h"
@@ -881,7 +881,6 @@
{
usbd_pipe_handle pipe = xfer->pipe;
usbd_status err;
- int s;
DPRINTFN(5,("usb_insert_transfer: pipe=%p running=%d timeout=%d\n",
pipe, pipe->running, xfer->timeout));
@@ -896,7 +895,6 @@
}
xfer->busy_free = XFER_ONQU;
#endif
- s = splusb();
SIMPLEQ_INSERT_TAIL(&pipe->queue, xfer, next);
if (pipe->running)
err = USBD_IN_PROGRESS;
@@ -904,7 +902,6 @@
pipe->running = 1;
err = USBD_NORMAL_COMPLETION;
}
- splx(s);
return (err);
}
Home |
Main Index |
Thread Index |
Old Index