Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.
MFC after: 3 days
This commit is contained in:
parent
7e543a0ed3
commit
af3839c4ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236070
@ -217,12 +217,12 @@ usbd_transfer_setup_sub_malloc(struct usb_setup_params *parm,
|
||||
* Try multi-allocation chunks to reduce the number of DMA
|
||||
* allocations, hence DMA allocations are slow.
|
||||
*/
|
||||
if (size >= PAGE_SIZE) {
|
||||
if (size >= USB_PAGE_SIZE) {
|
||||
n_dma_pc = count;
|
||||
n_obj = 1;
|
||||
} else {
|
||||
/* compute number of objects per page */
|
||||
n_obj = (PAGE_SIZE / size);
|
||||
n_obj = (USB_PAGE_SIZE / size);
|
||||
/*
|
||||
* Compute number of DMA chunks, rounded up
|
||||
* to nearest one:
|
||||
|
Loading…
Reference in New Issue
Block a user