aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2016-06-22 08:46:12 +0100
committerDaniel Vetter <[email protected]>2016-06-22 10:07:28 +0200
commitfa7d81bb3c269a2ee38b6e4d569d9eb8be1a78ad (patch)
treea3c19e2d7dd2fe3b9c5f588b6adc5feaf9e38c1c
parent366e292df678caed1fb3644989e6b5ae2333808c (diff)
drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference
We are only documenting that the read is outside of the lock, and do not require strict ordering on the operation. In this case the more relaxed lockless_dereference() will suffice. Signed-off-by: Chris Wilson <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Emil Velikov <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 0a06f9120b5a..ce54e985d91b 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -464,7 +464,7 @@ static bool drm_fb_helper_is_bound(struct drm_fb_helper *fb_helper)
/* Sometimes user space wants everything disabled, so don't steal the
* display if there's a master. */
- if (READ_ONCE(dev->master))
+ if (lockless_dereference(dev->master))
return false;
drm_for_each_crtc(crtc, dev) {