aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorJani Nikula <[email protected]>2025-05-06 13:06:50 +0000
committerJani Nikula <[email protected]>2025-05-07 08:09:43 +0000
commit0f2ab6a773e26f1e3d4a5de5476ee8288e6628f9 (patch)
tree567afa96bf1f64e2da63b2daa82d50819964e00b /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentdrm/i915/rps: refactor display rps support (diff)
downloadkernel-0f2ab6a773e26f1e3d4a5de5476ee8288e6628f9.tar.gz
kernel-0f2ab6a773e26f1e3d4a5de5476ee8288e6628f9.zip
drm/i915/irq: move i915->irq_lock to display->irq.lock
Observe that i915->irq_lock is no longer used to protect anything outside of display. Make it a display thing. This allows us to remove the ugly #define irq_lock irq.lock hack from xe compat header. Note that this is slightly more subtle than it first looks. For i915, there's no functional change here. The lock is moved. However, for xe, we'll now have *two* locks, xe->irq.lock and display->irq.lock. These should protect different things, though. Indeed, nesting in the past would've lead to a deadlock because they were the same lock. With the i915 references gone, we can make a handful more files independent of i915_drv.h. Reviewed-by: Gustavo Sousa <[email protected]> Link: https://lore.kernel.org/r/6d8d2ce0f34a9c7361a5e2fcf96bb32a34c57e76.1746536745.git.jani.nikula@intel.com [Jani: Fixed a comment while applying.] Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions