mirror of https://gitee.com/openkylin/linux.git
drm/gpu: Add comment for memory barrier
-Add comment for memory barrier -Issue found using checkpatch.pl Signed-off-by: Bhanusree <bhanusreemahesh@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/1571891313-14341-1-git-send-email-bhanusreemahesh@gmail.com
This commit is contained in:
parent
2ec35bd21d
commit
606be04724
|
@ -62,10 +62,10 @@ static void drm_cache_flush_clflush(struct page *pages[],
|
||||||
{
|
{
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
|
|
||||||
mb();
|
mb(); /*Full memory barrier used before so that CLFLUSH is ordered*/
|
||||||
for (i = 0; i < num_pages; i++)
|
for (i = 0; i < num_pages; i++)
|
||||||
drm_clflush_page(*pages++);
|
drm_clflush_page(*pages++);
|
||||||
mb();
|
mb(); /*Also used after CLFLUSH so that all cache is flushed*/
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue