aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2001-01-21 19:25:07 +0000
committerJake Burkholder <jake@FreeBSD.org>2001-01-21 19:25:07 +0000
commita448b62ac998ab4ae5e85fc7235cbb5c5dbe60ef (patch)
treea8fab5ee465b0d67b785fe50774997a21db3fdd5 /sys/dev/usb
parent96b15e09d91b60bbe41d2a3ff239e9a38022ab57 (diff)
Notes
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ohci.c2
-rw-r--r--sys/dev/usb/uhci.c2
-rw-r--r--sys/dev/usb/usbdi.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index c9062a499a1c7..c2abcd8bbc8d4 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -1889,7 +1889,7 @@ ohci_abort_xfer(xfer, status)
timeout(ohci_abort_xfer_end, xfer, hz / USB_FRAMES_PER_SECOND);
} else {
#if defined(DIAGNOSTIC) && defined(__i386__) && defined(__FreeBSD__)
- KASSERT(PCPU_GET(intr_nesting_level) == 0,
+ KASSERT(curproc->p_intr_nesting_level == 0,
("ohci_abort_req in interrupt context"));
#endif
usb_delay_ms(opipe->pipe.device->bus, 1);
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 7098db11abee0..1628268f3c5b9 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1610,7 +1610,7 @@ uhci_abort_xfer(usbd_xfer_handle xfer, usbd_status status)
timeout(uhci_abort_xfer_end, xfer, hz / USB_FRAMES_PER_SECOND);
} else {
#if defined(DIAGNOSTIC) && defined(__i386__) && defined(__FreeBSD__)
- KASSERT(PCPU_GET(intr_nesting_level) == 0,
+ KASSERT(curproc->p_intr_nesting_level == 0,
("ohci_abort_req in interrupt context"));
#endif
usb_delay_ms(xfer->pipe->device->bus, 1);
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index c39a8560a7afb..6203e8ab271a3 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -931,7 +931,7 @@ usbd_do_request_flags(dev, req, data, flags, actlen)
#ifdef DIAGNOSTIC
#if defined(__i386__) && defined(__FreeBSD__)
- KASSERT(PCPU_GET(intr_nesting_level) == 0,
+ KASSERT(curproc->p_intr_nesting_level == 0,
("usbd_do_request: in interrupt context"));
#endif
if (dev->bus->intr_context) {