Commit 606be047 authored by Bhanusree's avatar Bhanusree Committed by Daniel Vetter
Browse files

drm/gpu: Add comment for memory barrier

parent 2ec35bd2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,10 +62,10 @@ static void drm_cache_flush_clflush(struct page *pages[],
{
	unsigned long i;

	mb();
	mb(); /*Full memory barrier used before so that CLFLUSH is ordered*/
	for (i = 0; i < num_pages; i++)
		drm_clflush_page(*pages++);
	mb();
	mb(); /*Also used after CLFLUSH so that all cache is flushed*/
}
#endif