Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.
MFC after: 3 days
This commit is contained in:
parent
bedff6538f
commit
18530f8037
@ -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