diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-02-10 10:56:13 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-02-10 10:56:13 +0000 |
commit | 07c18e4e92170f42c04651098b0a5e506e8f1efe (patch) | |
tree | 98239bf65cd74264d2ba911ccbce4a4b729fa56b /sys/boot/usb | |
parent | 34ac6c9a18f820e4a7bbf72e956f09cf5c153a8b (diff) | |
download | FreeBSD-src-07c18e4e92170f42c04651098b0a5e506e8f1efe.zip FreeBSD-src-07c18e4e92170f42c04651098b0a5e506e8f1efe.tar.gz |
- Move scratch data from the USB bus structure to the USB device structure
so that simultaneous access cannot happen. Protect scratch area using
the enumeration lock. Also reduce stack usage in usbd_transfer_setup()
by moving some big stack members to the scratch area. This saves around
200 bytes of stack.
- Fix a whitespace.
MFC after: 1 week
Diffstat (limited to 'sys/boot/usb')
-rw-r--r-- | sys/boot/usb/bsd_global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/usb/bsd_global.h b/sys/boot/usb/bsd_global.h index 80cbd63..2fb0dcc 100644 --- a/sys/boot/usb/bsd_global.h +++ b/sys/boot/usb/bsd_global.h @@ -39,6 +39,7 @@ #include <dev/usb/usb_process.h> #include <dev/usb/usb_busdma.h> #include <dev/usb/usb_dynamic.h> +#include <dev/usb/usb_transfer.h> #include <dev/usb/usb_device.h> #include <dev/usb/usb_hub.h> #include <dev/usb/usb_controller.h> @@ -52,7 +53,6 @@ #include <dev/usb/usb_pf.h> #include <dev/usb/usb_request.h> #include <dev/usb/usb_util.h> -#include <dev/usb/usb_transfer.h> #include <dev/usb/usb_compat_linux.h> #include <dev/usb/usbhid.h> #include <dev/usb/usb_ioctl.h> |