projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
366e292
)
drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference
author
Chris Wilson
<
[email protected]
>
Wed, 22 Jun 2016 07:46:12 +0000
(08:46 +0100)
committer
Daniel Vetter
<
[email protected]
>
Wed, 22 Jun 2016 08:07:28 +0000
(10:07 +0200)
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]
drivers/gpu/drm/drm_fb_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_fb_helper.c
b/drivers/gpu/drm/drm_fb_helper.c
index 0a06f9120b5a61b56f0a8db9c77a3374bd20e37d..ce54e985d91ba0b2ee11000c6aa499cffb4a1bba 100644
(file)
--- 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) {