diff options
author | Bhanusree <bhanusreemahesh@gmail.com> | 2019-10-24 07:28:33 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-10-24 15:32:47 +0300 |
commit | 606be04724b6003bd00038c43eb9e1ae5e9c0993 (patch) | |
tree | f88b548fc8afe9461eb8bbd9edf721f30540e490 | |
parent | 2ec35bd21d3290c8f76020dc60503deacd18e24b (diff) | |
download | linux-606be04724b6003bd00038c43eb9e1ae5e9c0993.tar.xz |
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
-rw-r--r-- | drivers/gpu/drm/drm_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index 3bd76e918b5d..e574261f6bc3 100644 --- a/drivers/gpu/drm/drm_cache.c +++ b/drivers/gpu/drm/drm_cache.c @@ -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 |