diff options
| author | Maarten Lankhorst <[email protected]> | 2015-08-18 13:40:05 +0200 |
|---|---|---|
| committer | Maarten Lankhorst <[email protected]> | 2015-11-02 15:50:24 +0100 |
| commit | f935675f0c07f87da2facc4c144d511e6da48240 (patch) | |
| tree | c8deef65bc14dcf8bcf241c9de226a9d13599436 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 5008e874edd34705be433bfa74bd29908182b36e (diff) | |
drm/i915: Change locking for struct_mutex, v3.
struct_mutex is being locked for every plane in intel_prepare_plane_fb
and intel_cleanup_plane_fb.
Require the caller to hold the mutex, and only acquire the mutex for
each helper call. This way the lock only needs to be acquired
twice in ->atomic_commit(). Once for pinning new framebuffers at the
start, the second time for unpinning old framebuffer.
Changes since v1:
- Use mutex_lock_interruptible instead of i915 variant,
to prevent a deadlock when called from the reset code.
Changes since v2:
- Clarify struct_mutex is locked by the caller.
Signed-off-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Matt Roper <[email protected]> #v1
Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions