diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-02-10 10:56:13 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-02-10 10:56:13 +0000 |
commit | 6950c75f401152bfb9b7a0603241434b51cba482 (patch) | |
tree | 98239bf65cd74264d2ba911ccbce4a4b729fa56b /sys/dev/usb/usb_bus.h | |
parent | 74b50dd979d8277c2629f39f8201b9f51176f812 (diff) | |
download | src-6950c75f401152bfb9b7a0603241434b51cba482.tar.gz src-6950c75f401152bfb9b7a0603241434b51cba482.zip |
- 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
Notes
Notes:
svn path=/head/; revision=246616
Diffstat (limited to 'sys/dev/usb/usb_bus.h')
-rw-r--r-- | sys/dev/usb/usb_bus.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/dev/usb/usb_bus.h b/sys/dev/usb/usb_bus.h index dea15f8f71a5..2898eee87cbc 100644 --- a/sys/dev/usb/usb_bus.h +++ b/sys/dev/usb/usb_bus.h @@ -113,16 +113,6 @@ struct usb_bus { uint8_t devices_max; /* maximum number of USB devices */ uint8_t do_probe; /* set if USB should be re-probed */ uint8_t no_explore; /* don't explore USB ports */ - - /* - * The scratch area can only be used inside the explore thread - * belonging to the give serial bus. - */ - union { - struct usb_hw_ep_scratch hw_ep_scratch[1]; - struct usb_temp_setup temp_setup[1]; - uint8_t data[255]; - } scratch[1]; }; #endif /* _USB_BUS_H_ */ |