MFC r196496

Add a reminder comment to optimize bus_dmamap_sync calls.
This commit is contained in:
Andrew Thompson 2009-10-29 23:13:02 +00:00
parent edd4ee99cf
commit f18778a473
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=198637

View File

@ -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);
}