mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Add a reminder comment to optimize bus_dmamap_sync calls.
Submitted by: hps
This commit is contained in:
parent
77c33ae7cc
commit
f2db024fe6
1 changed files with 6 additions and 0 deletions
|
|
@ -679,6 +679,12 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc)
|
|||
/* nothing has been loaded into this page cache! */
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: We currently do XXX_POSTREAD and XXX_PREREAD at the
|
||||
* same time, but in the future we should try to isolate the
|
||||
* different cases to optimise the code. --HPS
|
||||
*/
|
||||
bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_POSTREAD);
|
||||
bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue