diff options
author | Chris Wilson <[email protected]> | 2016-08-05 10:14:19 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2016-08-05 10:54:41 +0100 |
commit | c21724cc4d3d5c96a15347f2435a753aff2007c4 (patch) | |
tree | 7e8995fb3cde407e8b3d7dac7a88a3c07f9906d4 /lib/mpi/mpi-bit.c | |
parent | 3fdc13c7a3cbd5788daad4cf1ddc619856e2f1c0 (diff) |
drm/i915: Reduce locking inside swfinish ioctl
We only need to take the struct_mutex if the object is pinned to the
display engine and so requires checking for clflush. (The race with
userspace pinning the object to a framebuffer is irrelevant.)
v2: Use access once for compiler hints (or not as it is a bitfield)
v3: READ_ONCE, obj->pin_display is not a bitfield anymore
v4: Don't be creative with goto.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions