1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-20 15:43:16 +00:00

Add a reminder comment to optimize bus_dmamap_sync calls.

Submitted by:	hps
This commit is contained in:
Alfred Perlstein 2009-08-24 05:03:30 +00:00
parent 77c33ae7cc
commit f2db024fe6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196496

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