diff options
author | jake <jake@FreeBSD.org> | 2001-01-10 04:43:51 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-01-10 04:43:51 +0000 |
commit | 4f5d8ed82579a945555b585b43ab2d09eae30c77 (patch) | |
tree | 512839f19fc02786cc9904c4406357f3573a8b09 /sys/dev/usb | |
parent | 776ef1f43089579877329277af83423976a699d2 (diff) | |
download | FreeBSD-src-4f5d8ed82579a945555b585b43ab2d09eae30c77.zip FreeBSD-src-4f5d8ed82579a945555b585b43ab2d09eae30c77.tar.gz |
Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables
other then curproc.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ohci.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/uhci.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/usbdi.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index f559faa..c9062a4 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(intr_nesting_level == 0, + KASSERT(PCPU_GET(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 99c85c4..7098db1 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(intr_nesting_level == 0, + KASSERT(PCPU_GET(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 7dc8a0e..c39a856 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(intr_nesting_level == 0, + KASSERT(PCPU_GET(intr_nesting_level) == 0, ("usbd_do_request: in interrupt context")); #endif if (dev->bus->intr_context) { |